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

Unable to retrieve deployment info if helm release name is templated #836

Closed
johnmshields opened this issue Jul 19, 2018 · 3 comments
Closed
Labels
deploy/helm kind/bug Something isn't working

Comments

@johnmshields
Copy link
Contributor

Expected behavior

A helm deployment should retrieve the deployment information after deployment and does not return a warning.

Actual behavior

The deployment information is not retrieved and a warning is displayed when the release name includes a templated value.

WARN[0035] error retrieving helm deployment info: Error: invalid release name, must match regex ^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])+$ and the length must not longer than 53

The warning above occurs due to the code here using r.Name instead of releaseName from here.

So line 239 should be changed from:

return h.getDeployResults(ns, r.Name), helmErr

to

return h.getDeployResults(ns, releaseName), helmErr
@r2d4 r2d4 added kind/bug Something isn't working deploy/helm labels Jul 19, 2018
@dlorenc
Copy link
Contributor

dlorenc commented Jul 26, 2018

@johnmshields are you interested in sending a PR for this?

@johnmshields
Copy link
Contributor Author

Sure, I'd be happy to... just haven't gone through any of the CLA stuff, yet. I'll put that together ASAP.

johnmshields added a commit to johnmshields/skaffold that referenced this issue Jul 26, 2018
The helm release name can be templated so within the `deployRelease`
function the `releaseName` variable should be used any time the release
name is desired.

This commit updates the final call to `getDeployResults` to properly use
the `releaseName` variable.
dgageot added a commit that referenced this issue Jul 26, 2018
Issue #836: Use releaseName to get release info.
@dgageot
Copy link
Contributor

dgageot commented Jul 26, 2018

Fixed with #855

@dgageot dgageot closed this as completed Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy/helm kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants