From cd2f1a24bdf2869841c9fd8d7d73336e393e2dae Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Fri, 28 May 2021 09:37:51 +0300 Subject: [PATCH] Update Kubernetes manifests to rbac.authorization.k8s.io/v1 Signed-off-by: Stefan Prodan --- artifacts/flagger/account.yaml | 4 ++-- charts/flagger/templates/prometheus.yaml | 4 ++-- charts/flagger/templates/rbac.yaml | 4 ++-- kustomize/appmesh/patch.yaml | 2 +- kustomize/base/flagger/rbac.yaml | 4 ++-- kustomize/base/prometheus/rbac.yaml | 4 ++-- kustomize/istio/patch.yaml | 2 +- kustomize/linkerd/patch.yaml | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/artifacts/flagger/account.yaml b/artifacts/flagger/account.yaml index c8ed98336..95e319ead 100644 --- a/artifacts/flagger/account.yaml +++ b/artifacts/flagger/account.yaml @@ -6,7 +6,7 @@ metadata: labels: app: flagger --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: flagger @@ -192,7 +192,7 @@ rules: verbs: - get --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: flagger diff --git a/charts/flagger/templates/prometheus.yaml b/charts/flagger/templates/prometheus.yaml index e029b6244..b15f50e15 100644 --- a/charts/flagger/templates/prometheus.yaml +++ b/charts/flagger/templates/prometheus.yaml @@ -1,5 +1,5 @@ {{- if .Values.prometheus.install }} -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ template "flagger.fullname" . }}-prometheus @@ -24,7 +24,7 @@ rules: - nonResourceURLs: ["/metrics"] verbs: ["get"] --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "flagger.fullname" . }}-prometheus diff --git a/charts/flagger/templates/rbac.yaml b/charts/flagger/templates/rbac.yaml index afd0d6118..8f27bbf8b 100644 --- a/charts/flagger/templates/rbac.yaml +++ b/charts/flagger/templates/rbac.yaml @@ -1,5 +1,5 @@ {{- if .Values.rbac.create }} -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ template "flagger.fullname" . }} @@ -200,7 +200,7 @@ rules: verbs: - get --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "flagger.fullname" . }} diff --git a/kustomize/appmesh/patch.yaml b/kustomize/appmesh/patch.yaml index 38315632e..915a374e3 100644 --- a/kustomize/appmesh/patch.yaml +++ b/kustomize/appmesh/patch.yaml @@ -13,7 +13,7 @@ spec: - -mesh-provider=appmesh - -metrics-server=http://appmesh-prometheus:9090 --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: flagger diff --git a/kustomize/base/flagger/rbac.yaml b/kustomize/base/flagger/rbac.yaml index f4db1403a..354de8330 100644 --- a/kustomize/base/flagger/rbac.yaml +++ b/kustomize/base/flagger/rbac.yaml @@ -1,4 +1,4 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: flagger @@ -182,7 +182,7 @@ rules: verbs: - get --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: flagger diff --git a/kustomize/base/prometheus/rbac.yaml b/kustomize/base/prometheus/rbac.yaml index 7f5d2c544..5bf16236d 100644 --- a/kustomize/base/prometheus/rbac.yaml +++ b/kustomize/base/prometheus/rbac.yaml @@ -1,4 +1,4 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: flagger-prometheus @@ -18,7 +18,7 @@ rules: - nonResourceURLs: ["/metrics"] verbs: ["get"] --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: flagger-prometheus diff --git a/kustomize/istio/patch.yaml b/kustomize/istio/patch.yaml index a9e3d9843..59e5a6246 100644 --- a/kustomize/istio/patch.yaml +++ b/kustomize/istio/patch.yaml @@ -13,7 +13,7 @@ spec: - -mesh-provider=istio - -metrics-server=http://prometheus:9090 --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: flagger diff --git a/kustomize/linkerd/patch.yaml b/kustomize/linkerd/patch.yaml index fc3cf923a..796cc8bb1 100644 --- a/kustomize/linkerd/patch.yaml +++ b/kustomize/linkerd/patch.yaml @@ -13,7 +13,7 @@ spec: - -mesh-provider=linkerd - -metrics-server=http://prometheus.linkerd-viz:9090 --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: flagger