-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Using helmCharts
doesn't work with charts that use .Release
fields
#4303
Comments
@anvouk: This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
At least for the broken namespace value, explicitly setting I also had a problem with the release name being set to |
do we have any update on this? |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/assign |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Since Kustomize is not actually performing a Helm release as part of processing, we are using
This sounds very reasonable to me. Could this be considered a viable solution if we document it? |
According to this: kustomize/api/types/helmchartargs.go Lines 45 to 56 in 71bf0d5
it looks like you are supposed to be able to set
No code change needed, I think it is working as expected if you specify releaseName and namespace. |
Actually, after looking at this again, I think it seems to be working fine. I don't know why I got that error about two arguments before, but maybe I had made a change and forgot to back it out before running that. @anvouk if you specify
Output:
|
Thanks @brianpursley ! Since these values are already propagated correctly from our /triage resolved |
@KnVerey I think we should re-open this issue (or make a new one). Some reasons that came to mind while thinking as for why leaving things like this is a bad idea:
|
What happened:
Deploying
kustomization.yaml
withhelmCharts
doesn't set.Release
properties.This breaks some popular charts in a very hard to debug manner (for example, bitnami kafka helm chart which relies on
.Release.Namespace
for cluster connections).What you expected to happen:
When launching
kubectl kustomize <FOLDER> --enable-helm
,.Release
properties should have correct values and not default ones.At least, provide a way to manually set them inside
kustomization.yaml
.How to reproduce it (as minimally and precisely as possible):
kubectl kustomize test --enable-helm | kubectl apply -f -
the following example: broken-example.Release.Namespace
and.Release.Name
set:Anything else we need to know?:
This issue has been previously open under kubectl: kubernetes/kubectl#1151.
Environment:
kubectl:
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3", GitCommit:"c92036820499fedefec0f847e2054d824aea6cd1", GitTreeState:"clean", BuildDate:"2021-10-27T18:41:28Z", GoVersion:"go1.16.9", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3", GitCommit:"c92036820499fedefec0f847e2054d824aea6cd1", GitTreeState:"clean", BuildDate:"2021-10-27T18:35:25Z", GoVersion:"go1.16.9", Compiler:"gc", Platform:"linux/amd64"}
helm:
version.BuildInfo{Version:"v3.7.0", GitCommit:"eeac83883cb4014fe60267ec6373570374ce770b", GitTreeState:"clean", GoVersion:"go1.16.8"}
minikube version:
v1.24.0 commit: 76b94fb3c4e8ac5062daf70d60cf03ddcc0a741b
NAME="Ubuntu" VERSION="18.04.5 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.5 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic
The text was updated successfully, but these errors were encountered: