-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Configmap from value.yaml doesn't end up in the output of helm template (Or in what's eventually applied) #12429
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it 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-sigs/prow repository. |
/remove-kind bug
/close |
@longwuyuan: 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. |
This is my values.yaml:
This is the command I use to see what the output is: And this is what test.yml contains:
As you can see, it's missing the annotations, and the configuration. I'm confused why this is happening. |
@longwuyuan Please reopen this. Your suggestion does not work. My original problem description also shows that that's what I was already doing. |
I finally figured it out, this happened because my understanding of helm templating is severely lacking. When the same thing happened to me trying to implement Traefik, and that ALSO wasn't applying, my IDE's autocomplete saved me by complete happenstance after 2 hours of debugging without any results. These values are nested. So not
But
(I use the root level namespace for my CI/CD deployments, it is unrelated to the nginx helm charts) |
What happened:
In the directory
ops/helm/ingress-nginx
:Chart.yml
values.yaml
I run
The relevant part is in test.yml:
What you expected to happen:
https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/templates/controller-configmap.yaml
This has:
So I would expect data to be populated with:
But, it is empty. I have no idea what's happening for this not to be put in there. All the docs, and the actual template point to that this should work.
NGINX Ingress controller version (exec into the pod and run
/nginx-ingress-controller --version
):Kubernetes version (use
kubectl version
):Client Version: v1.31.3
Kustomize Version: v5.4.2
Server Version: v1.31.1
Environment:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Tried this on windows and osx
Kernel (e.g.
uname -a
):Install tools:
Please mention how/where was the cluster created like kubeadm/kops/minikube/kind etc.
Basic cluster related info:
kubectl version
kubectl get nodes -o wide
How was the ingress-nginx-controller installed:
helm ls -A | grep -i ingress
helm -n <ingresscontrollernamespace> get values <helmreleasename>
Current State of the controller:
kubectl describe ingressclasses
kubectl -n <ingresscontrollernamespace> get all -A -o wide
kubectl -n <ingresscontrollernamespace> describe po <ingresscontrollerpodname>
kubectl -n <ingresscontrollernamespace> describe svc <ingresscontrollerservicename>
Current state of ingress object, if applicable:
kubectl -n <appnamespace> get all,ing -o wide
kubectl -n <appnamespace> describe ing <ingressname>
Others:
kubectl describe ...
of any custom configmap(s) created and in useHow to reproduce this issue:
Anything else we need to know:
The text was updated successfully, but these errors were encountered: