-
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
'~/.kube/config` incorrectly being a directory, changes the template results of some helm charts, and produces no warnings/errors. #5472
Comments
I can reproduce this problem, But I believe this problem is caused by the helm binary according to the comment below. I think we need to wait for resolve at the helm. /area helm |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Please feel free to reopen this issue if you have any problems now! /close |
@koba1t: Closing this issue. In response to this:
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-sigs/prow repository. |
What happened?
When
kustomize build --enable-helm
is run with a Kubeconfig that is actually a directory, the value of{{ .Release.Namespace }}
is changing in some templates.I was seeing some very strange results when doing testing, and after a lot of troubleshooting, I realized that an error in the test container had caused
/root/.kube/config
to be created as a directory inside the container, and this then triggered the template results to change without any errors or warning.I am not 100% sure if the underlying issue handling this situation is in
kustomize
orhelm
. I got this far with my testing, but I have not tried to figure out if this reproduces withhelm
directly.Also submitted here: helm/helm#12611
What did you expect to happen?
I would either expect the tool to produce an error or warning regarding the kube config issues while either rendering the helm templates exactly the same way as it normally would or quitting completely.
How can we reproduce it (as minimally and precisely as possible)?
Create a new directory with these two files:
This output appears correct, as there are NO namespaces set to default.
But if we replace the kube config with a directory, the namespaces change and there are no errors, warnings, etc.
Expected output
default
.Actual output
default
.Kustomize version
v5.2.1
Helm version
version.BuildInfo{Version:"v3.13.2", GitCommit:"2a2fb3b98829f1e0be6fb18af2f6599e0f4e8243", GitTreeState:"clean", GoVersion:"go1.21.4"}
Kubectl Version
Client Version: v1.28.4
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Operating system
MacOS
The text was updated successfully, but these errors were encountered: