Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

[Chart] adding-swift-chart #197

Closed
wants to merge 1 commit into from
Closed

[Chart] adding-swift-chart #197

wants to merge 1 commit into from

Conversation

gardlt
Copy link
Contributor

@gardlt gardlt commented Feb 13, 2017

  • created chart for swift support

Closes-Feature: #177

What is the purpose of this pull request?:

What issue does this pull request address?: Fixes #177

Notes for reviewers to consider:

Specific reviewers for pull request:

@gardlt gardlt changed the title [WIP] [Chart] adding-swift-chart [WIP] [Chart] [ci skip] adding-swift-chart Feb 13, 2017
@gardlt gardlt changed the title [WIP] [Chart] [ci skip] adding-swift-chart [WIP] [Chart] adding-swift-chart Feb 13, 2017

images:
db_init: quay.io/stackanetes/stackanetes-kolla-toolbox:newton
db_sync: quay.io/stackanetes/stackanetes-swift-api:newton
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stackanetes doesn't support swift :P

Copy link
Contributor Author

@gardlt gardlt Feb 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no stackanetes doesn't support we will have to create in our quay. this is currently a placeholder.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gardlt you can use kolla for now as a placeholder like our other charts.

db_init: quay.io/stackanetes/stackanetes-kolla-toolbox:newton
db_sync: quay.io/stackanetes/stackanetes-swift-api:newton
api: quay.io/stackanetes/stackanetes-swift-api:newton
dep_check: quay.io/stackanetes/kubernetes-entrypoint:v0.1.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use v0.1.1 instead of v0.1.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i saw this comment i will update.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DTadrzak good point...we should really start updating this across the project. 👍

configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
pod.beta.kubernetes.io/init-containers: '[
{{ tuple $envAll $dependecies | include "dep_check_init_cont" | indent 10 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This {{ }} should not be indented so the | indent 10 would work.

@gardlt gardlt changed the title [WIP] [Chart] adding-swift-chart [Chart] adding-swift-chart Feb 20, 2017
@gardlt
Copy link
Contributor Author

gardlt commented Feb 20, 2017

@gardlt gardlt closed this Feb 20, 2017
@gardlt gardlt reopened this Feb 20, 2017
# limitations under the License.

{{- $envAll := . }}
{{- $dependecies := .Values.dependencies.account }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependencies

configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "hash" }}
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "hash" }}
pod.beta.kubernetes.io/init-containers: '[
{{ tuple $envAll $dependecies | include "helm-toolkit.kubernetes_entrypoint_init_container" | indent 10 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependencies

# limitations under the License.

{{- $envAll := . }}
{{- $dependecies := .Values.dependencies.db_sync }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependencies

metadata:
annotations:
pod.beta.kubernetes.io/init-containers: '[
{{ tuple $envAll $dependecies | include "dep_check_init_cont" | indent 10 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependencies

cpu: {{ .Values.resources.jobs.db_sync.requests.cpu | quote }}
memory: {{ .Values.resources.jobs.db_sync.requests.memory | quote }}
{{- end }}
command:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, we should handle db-sync here similar to how it's handled in glance: https://github.com/att-comdev/openstack-helm/blob/master/glance/templates/job-db-sync.yaml#L45

Copy link
Contributor Author

@gardlt gardlt Feb 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So i been trying to look into this, but I do not believe that swift has anything like a swift-manage db_sync. you would maybe re-balance the rings. @v1k0d3n @alanmeadows

{{- if .Values.resources.enabled }}
resources:
limits:
cpu: {{ .Values.resources.jobs.init.limits.cpu }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The limits here should have | quote appended to the end of the value to maintain consistency


images:
db_init: quay.io/stackanetes/stackanetes-kolla-toolbox:newton
db_sync: quay.io/tetrasol/centos-binary-swift-proxy-server:newton
Copy link
Contributor

@wilkers-steve wilkers-steve Feb 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For images not available through Stackanetes, we should pull these from Kolla instead since those images are reasonably maintained and they're upstream images

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the kolla group have a docker hub or a quay registry that i can pull the images from?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, they do. You can find them here: https://hub.docker.com/u/kolla/. I think the swift entries start on page 9.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using kolla images. thank you for the link. 👍

Copy link
Contributor

@wilkers-steve wilkers-steve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for getting this started @gardlt. Some comments inline

* created chart for swift support
* keystone swift user db endpoint creation
* kolla-images
* updated-values file
* create swift config templates
* added README
* updated helm with min updates
Closes-Feature: #177
@wilkers-steve wilkers-steve removed this from the 0.4.0 milestone Apr 7, 2017
@wilkers-steve
Copy link
Contributor

Thanks for this work @gardlt. We'll file a blueprint once we're in OpenStack to track this work going forward. Until then, we'll leave this PR open for you to reference after that point.

@v1k0d3n
Copy link
Collaborator

v1k0d3n commented Apr 13, 2017

closing this PR in favor of moving the work to Openstack proper: https://github.com/openstack/openstack-helm

@v1k0d3n v1k0d3n closed this Apr 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add basic swift chart
5 participants