Skip to content
Snippets Groups Projects
Unverified Commit 8585134d authored by Cristian Calin's avatar Cristian Calin Committed by GitHub
Browse files

when ingress-nginx is deployes without a class, we need to use...

when ingress-nginx is deployes without a class, we need to use 'ingress-controller-leader' resource instead of the default 'ingress-controller-leader-nginx' (#9156)
parent 7e862939
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ rules: ...@@ -32,7 +32,7 @@ rules:
# Here: "<ingress-controller-leader>-<nginx>" # Here: "<ingress-controller-leader>-<nginx>"
# This has to be adapted if you change either parameter # This has to be adapted if you change either parameter
# when launching the nginx-ingress-controller. # when launching the nginx-ingress-controller.
resourceNames: ["ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"] resourceNames: [{% if ingress_class is defined %}"ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"{% else %}"ingress-controller-leader"{% endif %}]
verbs: ["get", "update"] verbs: ["get", "update"]
- apiGroups: ["coordination.k8s.io"] - apiGroups: ["coordination.k8s.io"]
resources: ["leases"] resources: ["leases"]
...@@ -40,7 +40,7 @@ rules: ...@@ -40,7 +40,7 @@ rules:
# Here: "<ingress-controller-leader>-<nginx>" # Here: "<ingress-controller-leader>-<nginx>"
# This has to be adapted if you change either parameter # This has to be adapted if you change either parameter
# when launching the nginx-ingress-controller. # when launching the nginx-ingress-controller.
resourceNames: ["ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"] resourceNames: [{% if ingress_class is defined %}"ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"{% else %}"ingress-controller-leader"{% endif %}]
verbs: ["get", "update"] verbs: ["get", "update"]
- apiGroups: [""] - apiGroups: [""]
resources: ["configmaps"] resources: ["configmaps"]
...@@ -58,7 +58,7 @@ rules: ...@@ -58,7 +58,7 @@ rules:
# Here: "<ingress-controller-leader>-<nginx>" # Here: "<ingress-controller-leader>-<nginx>"
# This has to be adapted if you change either parameter # This has to be adapted if you change either parameter
# when launching the nginx-ingress-controller. # when launching the nginx-ingress-controller.
resourceNames: ["ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"] resourceNames: [{% if ingress_class is defined %}"ingress-controller-leader-{{ ingress_nginx_class | default('nginx') }}"{% else %}"ingress-controller-leader"{% endif %}]
verbs: ["get", "update"] verbs: ["get", "update"]
- apiGroups: ["coordination.k8s.io"] - apiGroups: ["coordination.k8s.io"]
resources: ["leases"] resources: ["leases"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment