From 43e7e2d6636556505a1580cab2a9494dcb3532b3 Mon Sep 17 00:00:00 2001 From: Cristian Calin <6627509+cristicalin@users.noreply.github.com> Date: Mon, 6 Sep 2021 14:50:36 +0300 Subject: [PATCH] nginx-ingress: bump to 1.0.0 to support kube 1.22 (#7942) --- roles/download/defaults/main.yml | 2 +- .../ingress_nginx/templates/clusterrole-ingress-nginx.yml.j2 | 2 +- .../ingress_nginx/templates/role-ingress-nginx.yml.j2 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/download/defaults/main.yml b/roles/download/defaults/main.yml index 1fc32046f..b20f2c74e 100644 --- a/roles/download/defaults/main.yml +++ b/roles/download/defaults/main.yml @@ -664,7 +664,7 @@ rbd_provisioner_image_tag: "v2.1.1-k8s1.11" local_path_provisioner_image_repo: "{{ docker_image_repo }}/rancher/local-path-provisioner" local_path_provisioner_image_tag: "v0.0.19" ingress_nginx_controller_image_repo: "{{ kube_image_repo }}/ingress-nginx/controller" -ingress_nginx_controller_image_tag: "v0.43.0" +ingress_nginx_controller_image_tag: "v1.0.0" ingress_ambassador_image_repo: "{{ quay_image_repo }}/datawire/ambassador-operator" ingress_ambassador_image_tag: "v1.2.9" alb_ingress_image_repo: "{{ docker_image_repo }}/amazon/aws-alb-ingress-controller" diff --git a/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/clusterrole-ingress-nginx.yml.j2 b/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/clusterrole-ingress-nginx.yml.j2 index c17f6553e..b136d4c71 100644 --- a/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/clusterrole-ingress-nginx.yml.j2 +++ b/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/clusterrole-ingress-nginx.yml.j2 @@ -17,7 +17,7 @@ rules: resources: ["services"] verbs: ["get", "list", "watch"] - apiGroups: ["extensions","networking.k8s.io"] - resources: ["ingresses"] + resources: ["ingresses", "ingressclasses"] verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["events"] diff --git a/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/role-ingress-nginx.yml.j2 b/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/role-ingress-nginx.yml.j2 index 46c5caeea..3c408e3dc 100644 --- a/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/role-ingress-nginx.yml.j2 +++ b/roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/role-ingress-nginx.yml.j2 @@ -18,7 +18,7 @@ rules: resources: ["services"] verbs: ["get", "list", "watch"] - apiGroups: ["extensions", "networking.k8s.io"] - resources: ["ingresses"] + resources: ["ingresses", "ingressclasses"] verbs: ["get", "list", "watch"] - apiGroups: ["extensions", "networking.k8s.io"] resources: ["ingresses/status"] @@ -36,7 +36,7 @@ rules: verbs: ["get", "update"] - apiGroups: [""] resources: ["configmaps"] - verbs: ["create"] + verbs: ["create", "update"] - apiGroups: [""] resources: ["events"] verbs: ["create", "patch"]