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

feat(template): Allow template output to use release name #7503

Merged
merged 2 commits into from Feb 4, 2020

Conversation

hickeyma
Copy link
Contributor

@hickeyma hickeyma commented Jan 31, 2020

helm template --output-dir command uses the chart name only when writing templates to disk. This causes collision in the path when running the command for different releases of the same chart. This feature allows the release name to be used to avoid second invocation clobbering the previous output.

New path format: outputDir/<releaseName>/<chart>/templates

Closes #5664

@helm-bot helm-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 31, 2020
@hickeyma hickeyma self-assigned this Jan 31, 2020
@hickeyma hickeyma added feature v3.x Issues and Pull Requests related to the major version v3 awaiting review labels Jan 31, 2020
@hickeyma hickeyma added this to the 3.1.0 milestone Jan 31, 2020
pkg/action/install.go Outdated Show resolved Hide resolved
helm template output command uses the chart name only when writing
templates to disk. This changes will also use the release name
to avoid colloiding the path when output nore than one release
of smae chart.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
@hickeyma hickeyma force-pushed the feat/template-out-with-relname branch from eedc382 to 0cc66f2 Compare February 3, 2020 15:28
Comment:
- https://github.com/helm/helm/pull/7503/files#r374130090

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
@hickeyma
Copy link
Contributor Author

hickeyma commented Feb 4, 2020

Thanks for review @thomastaylor312

@hickeyma hickeyma merged commit 084ab20 into helm:master Feb 4, 2020
@hickeyma hickeyma deleted the feat/template-out-with-relname branch February 4, 2020 16:27
@hickeyma hickeyma added the needs-pick Indicates that a PR needs to be cherry-picked into the next release candidate. label Feb 5, 2020
bamachrn pushed a commit to bamachrn/helm that referenced this pull request Feb 28, 2020
* Allow template output to use release name

helm template output command uses the chart name only when writing
templates to disk. This changes will also use the release name
to avoid colloiding the path when output nore than one release
of smae chart.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

* Update after review

Comment:
- https://github.com/helm/helm/pull/7503/files#r374130090

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
bamachrn pushed a commit to bamachrn/helm that referenced this pull request Feb 28, 2020
* Allow template output to use release name

helm template output command uses the chart name only when writing
templates to disk. This changes will also use the release name
to avoid colloiding the path when output nore than one release
of smae chart.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

* Update after review

Comment:
- https://github.com/helm/helm/pull/7503/files#r374130090

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
bamachrn pushed a commit to bamachrn/helm that referenced this pull request Feb 28, 2020
* Allow template output to use release name

helm template output command uses the chart name only when writing
templates to disk. This changes will also use the release name
to avoid colloiding the path when output nore than one release
of smae chart.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

* Update after review

Comment:
- https://github.com/helm/helm/pull/7503/files#r374130090

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
@marckhouzam marckhouzam removed the needs-pick Indicates that a PR needs to be cherry-picked into the next release candidate. label Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature size/M Denotes a PR that changes 30-99 lines, ignoring generated files. v3.x Issues and Pull Requests related to the major version v3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

helm template --output-dir x --name release renders to colliding path
4 participants