Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Use UID of HelmRelease as dry run release name #1745

Merged
merged 2 commits into from
Feb 18, 2019

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Feb 15, 2019

Fixes #1703

This prevents dry run issues when a user has a release name that is 51+
characters long, as our previous strategy was to add '-temp' to the
given release name and Helm has a self imposed release name character
limit of 53 (51 + '-temp' = >53).

This prevents dry run issues when a user has a release name that is 51+
characters long, as our previous strategy was to add '-temp' to the
given release name and Helm has a self imposed release name character
limit of 53 (51 + '-temp' = >53).
@hiddeco hiddeco added the helm label Feb 15, 2019
@stefanprodan
Copy link
Member

If the dry run fails how can you tell from the logs what HelmRelease was it? I assume you'll see just a UID

@hiddeco
Copy link
Member Author

hiddeco commented Feb 15, 2019

@stefanprodan see the change to the logger.

@stefanprodan
Copy link
Member

That logs the info not the error

This ensures the given context around the error always points towards
the HelmRelease it results from instead of an eventual deverging one.
Which for example is the case during dry run operations where the
UID from the HelmRelease resource is used.
@hiddeco hiddeco merged commit 119f876 into master Feb 18, 2019
@hiddeco hiddeco deleted the 1703-temp-helm-release-names branch February 18, 2019 10:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants