-
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
Helm chart upgrade failed 'could not get information about the resource ValidatingWebhookConfiguration' #10733
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/test-infra repository. |
It does not seem to be related to my GKE configuration/environment. I tested the upgrade within a fresh minikube envrionment by applying these steps:
helm upgrade \
--install \
--version 4.8.3 \
--namespace \
ingress-nginx \
--create-namespace \
ingress-nginx ingress-nginx/ingress-nginx
helm upgrade \
--debug \
--reuse-values \
--set controller.admissionWebhooks.patch.networkPolicy.enabled=false \
--version 4.8.4 \
--namespace ingress-nginx \
ingress-nginx \
ingress-nginx/ingress-nginx
upgrade.go:153: [debug] preparing upgrade for ingress-nginx
upgrade.go:540: [debug] reusing the old release's values
upgrade.go:161: [debug] performing update for ingress-nginx
Error: UPGRADE FAILED: Unable to continue with update: could not get information about the resource ValidatingWebhookConfiguration "ingress-nginx-%!s(<nil>)" in namespace "": invalid resource name "ingress-nginx-%!s(<nil>)": [may not contain '%']
helm.go:84: [debug] invalid resource name "ingress-nginx-%!s(<nil>)": [may not contain '%']
could not get information about the resource ValidatingWebhookConfiguration "ingress-nginx-%!s(<nil>)" in namespace ""
helm.sh/helm/v3/pkg/action.existingResourceConflict.func1
helm.sh/helm/v3/pkg/action/validate.go:54
helm.sh/helm/v3/pkg/kube.ResourceList.Visit
helm.sh/helm/v3/pkg/kube/resource.go:32
helm.sh/helm/v3/pkg/action.existingResourceConflict
helm.sh/helm/v3/pkg/action/validate.go:43
helm.sh/helm/v3/pkg/action.(*Upgrade).performUpgrade
helm.sh/helm/v3/pkg/action/upgrade.go:330
helm.sh/helm/v3/pkg/action.(*Upgrade).RunWithContext
helm.sh/helm/v3/pkg/action/upgrade.go:162
main.newUpgradeCmd.func2
helm.sh/helm/v3/cmd/helm/upgrade.go:227
github.com/spf13/cobra.(*Command).execute
github.com/spf13/[email protected]/command.go:940
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/[email protected]/command.go:1068
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/[email protected]/command.go:992
main.main
helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598
Unable to continue with update
helm.sh/helm/v3/pkg/action.(*Upgrade).performUpgrade
helm.sh/helm/v3/pkg/action/upgrade.go:332
helm.sh/helm/v3/pkg/action.(*Upgrade).RunWithContext
helm.sh/helm/v3/pkg/action/upgrade.go:162
main.newUpgradeCmd.func2
helm.sh/helm/v3/cmd/helm/upgrade.go:227
github.com/spf13/cobra.(*Command).execute
github.com/spf13/[email protected]/command.go:940
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/[email protected]/command.go:1068
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/[email protected]/command.go:992
main.main
helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598
UPGRADE FAILED
main.newUpgradeCmd.func2
helm.sh/helm/v3/cmd/helm/upgrade.go:229
github.com/spf13/cobra.(*Command).execute
github.com/spf13/[email protected]/command.go:940
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/[email protected]/command.go:1068
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/[email protected]/command.go:992
main.main
helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598 |
please downgrade to 4.8.3, 4.8.4 was a mistaken release. Please report back if you have issues with 4.8.3 /close |
@strongjz: 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/test-infra repository. |
@strongjz just for information I keep getting the same error while upgrading from helm upgrade \
--debug \
--reuse-values \
--set controller.admissionWebhooks.patch.networkPolicy.enabled=false \
--version 4.9.1 \
--namespace ingress-nginx \
ingress-nginx \
ingress-nginx/ingress-nginx Error: upgrade.go:153: [debug] preparing upgrade for ingress-nginx
upgrade.go:540: [debug] reusing the old release's values
upgrade.go:161: [debug] performing update for ingress-nginx
Error: UPGRADE FAILED: Unable to continue with update: could not get information about the resource ValidatingWebhookConfiguration "ingress-nginx-%!s(<nil>)" in namespace "": invalid resource name "ingress-nginx-%!s(<nil>)": [may not contain '%']
helm.go:84: [debug] invalid resource name "ingress-nginx-%!s(<nil>)": [may not contain '%']
could not get information about the resource ValidatingWebhookConfiguration "ingress-nginx-%!s(<nil>)" in namespace ""
helm.sh/helm/v3/pkg/action.existingResourceConflict.func1
helm.sh/helm/v3/pkg/action/validate.go:54
helm.sh/helm/v3/pkg/kube.ResourceList.Visit
helm.sh/helm/v3/pkg/kube/resource.go:32
helm.sh/helm/v3/pkg/action.existingResourceConflict
helm.sh/helm/v3/pkg/action/validate.go:43
helm.sh/helm/v3/pkg/action.(*Upgrade).performUpgrade
helm.sh/helm/v3/pkg/action/upgrade.go:330
helm.sh/helm/v3/pkg/action.(*Upgrade).RunWithContext
helm.sh/helm/v3/pkg/action/upgrade.go:162
main.newUpgradeCmd.func2
helm.sh/helm/v3/cmd/helm/upgrade.go:227
github.com/spf13/cobra.(*Command).execute
github.com/spf13/[email protected]/command.go:940
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/[email protected]/command.go:1068
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/[email protected]/command.go:992
main.main
helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598
Unable to continue with update
helm.sh/helm/v3/pkg/action.(*Upgrade).performUpgrade
helm.sh/helm/v3/pkg/action/upgrade.go:332
helm.sh/helm/v3/pkg/action.(*Upgrade).RunWithContext
helm.sh/helm/v3/pkg/action/upgrade.go:162
main.newUpgradeCmd.func2
helm.sh/helm/v3/cmd/helm/upgrade.go:227
github.com/spf13/cobra.(*Command).execute
github.com/spf13/[email protected]/command.go:940
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/[email protected]/command.go:1068
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/[email protected]/command.go:992
main.main
helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598
UPGRADE FAILED
main.newUpgradeCmd.func2
helm.sh/helm/v3/cmd/helm/upgrade.go:229
github.com/spf13/cobra.(*Command).execute
github.com/spf13/[email protected]/command.go:940
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/[email protected]/command.go:1068
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/[email protected]/command.go:992
main.main
helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
runtime/proc.go:250
runtime.goexit
runtime/asm_amd64.s:1598 But at least I found a workaround by getting rid of the |
I'm running into the same issue. I wanted to upgrade from helm chart version Same command, same error as @mtovmassian so I won't copy paste the debug output again. @strongjz Can we re-open that issue or shall I create a new one? |
@avodaqstephan did your upgrade command used the |
Yes. In my case I needed to set two options to false. Then I end up with the same error message your already posted.
Edit: Ah, I missed the last sentence of your previous post with the workaround. I'll try that. Edit2: That worked. I exported my current values to a yaml, added the two networkPolicy settings and made the upgrade with my vaule file instead of the
Thank you @mtovmassian for the heads-up. 🚀 |
What happened:
I tried to upgrade my
ingress-nginx
helm chart fromv4.8.3
tov4.8.4
with this command:NB. I set the
controller.admissionWebhooks.patch.networkPolicy.enabled
field since it is now required in the networkpolicy.yaml file.And I got this error / debug stack trace:
NGINX Ingress controller version:
Kubernetes version:
Environment:
Cloud provider or hardware configuration:
GCP
OS (client):
Ubuntu 22.04.3 LTS
Kernel (client):
6.2.0-37-generic
How was the ingress-nginx-controller installed:
ingress-nginx ingress-nginx 15 2023-12-06 10:28:55.590059964 +0100 CET deployed ingress-nginx-4.8.3 1.9.4
The text was updated successfully, but these errors were encountered: