Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement packaging for helm deployment #682

Merged

Conversation

hypnoglow
Copy link
Contributor

A note for reviewers: this is a proposal. If you give the green light to it, I will add required tests and documentation.


This commit adds a possibility to package a helm chart before deployment
using helm package command. This can be useful to set a specific version
for a chart.


One of the workflows that skaffold assumes is to deploy a Helm chart that
resides within some directory in the project folder. Chart.yaml file in
that folder is basically static file, and --version flag in
helm install ./path/to/chart --version command actually does nothing,
so does "version:" field in helm section of skaffold.yaml.

To set a chart version dynamically, we have to use helm package command
setting --version (and optionally --app-version) flags accordingly.

This commit adds a new section packaged: to helm section skaffold.yaml
that can be used to configure dynamic chart versions.

This commit adds a possibility to package a helm chart before deployment
using `helm package` command. This can be useful to set a specific version
for a chart.

---

One of the workflows that skaffold assumes is to deploy a Helm chart that
resides within some directory in the project folder. `Chart.yaml` file in
that folder is basically static file, and `--version` flag in
`helm install ./path/to/chart --version` command actually does nothing,
so does "version:" field in helm section of **skaffold.yaml**.

To set a chart version dynamically, we have to use `helm package` command
setting `--version` (and optionally `--app-version`) flags accordingly.

This commit adds a new section `packaged:` to helm section **skaffold.yaml**
that can be used to configure dynamic chart versions.
@hypnoglow hypnoglow force-pushed the package-helm-charts-before-deploy branch from 7f1c558 to a0c641b Compare June 14, 2018 19:44
@r2d4 r2d4 added the kokoro:run runs the kokoro jobs on a PR label Jun 15, 2018
@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label Jun 15, 2018
Copy link
Contributor

@r2d4 r2d4 left a comment

Choose a reason for hiding this comment

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

Thanks!

@r2d4 r2d4 merged commit 23af4ce into GoogleContainerTools:master Jun 15, 2018
hypnoglow added a commit to hypnoglow/skaffold that referenced this pull request Jun 18, 2018
hypnoglow added a commit to hypnoglow/skaffold that referenced this pull request Jun 19, 2018
hypnoglow added a commit to hypnoglow/skaffold that referenced this pull request Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants