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

[Chart] adding-swift-chart - #197

Closed
gardlt wants to merge 1 commit into
att-comdev:masterfrom
gardlt:feature/chart/add-swift-openstack-helm
Closed

[Chart] adding-swift-chart#197
gardlt wants to merge 1 commit into
att-comdev:masterfrom
gardlt:feature/chart/add-swift-openstack-helm

Conversation

@gardlt

Copy link
Copy Markdown
Contributor
  • 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:

@gardltgardlt changed the title [WIP] [Chart] adding-swift-chart[WIP] [Chart] [ci skip] adding-swift-chartFeb 13, 2017
@gardltgardlt changed the title [WIP] [Chart] [ci skip] adding-swift-chart[WIP] [Chart] adding-swift-chartFeb 13, 2017
Comment threadswift/values.yaml Outdated

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

Copy link
Copy Markdown
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

@gardltgardltFeb 13, 2017

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
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.

Comment threadswift/values.yaml Outdated
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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
Copy Markdown
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
Copy Markdown
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.

@gardltgardlt changed the title [WIP] [Chart] adding-swift-chart[Chart] adding-swift-chartFeb 20, 2017
@gardlt

Copy link
Copy Markdown
ContributorAuthor

# limitations under the License.

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

dependencies

Comment threadswift/templates/job-db-sync.yaml Outdated
# limitations under the License.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

dependencies

Comment threadswift/templates/job-db-sync.yaml Outdated
metadata:
annotations:
pod.beta.kubernetes.io/init-containers: '[
{{ tuple $envAll $dependecies | include "dep_check_init_cont" | indent 10 }}

Copy link
Copy Markdown
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
Copy Markdown
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

@gardltgardltFeb 22, 2017

Copy link
Copy Markdown
ContributorAuthor

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

Comment threadswift/templates/job-db-init.yaml Outdated
{{- if .Values.resources.enabled }}
resources:
limits:
cpu: {{ .Values.resources.jobs.init.limits.cpu }}

Copy link
Copy Markdown
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

Comment threadswift/values.yaml Outdated

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

@wilkers-stevewilkers-steveFeb 21, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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. 👍

@wilkers-stevewilkers-steve left a comment

Copy link
Copy Markdown
Contributor

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
@v1k0d3nv1k0d3n added this to the 0.4.0 milestone Mar 15, 2017
@wilkers-stevewilkers-steve removed this from the 0.4.0 milestone Apr 7, 2017
@wilkers-steve

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@v1k0d3nv1k0d3n closed this Apr 13, 2017
Sign up for freeto 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

6 participants

@gardlt@wilkers-steve@v1k0d3n@stannum-l@DTadrzak@mcnanci