From 72e9e38053e69841ccd58f6754e62b0171355a2f Mon Sep 17 00:00:00 2001 From: westford14 Date: Tue, 19 Oct 2021 16:54:42 +0100 Subject: [PATCH] updating all instances of rbac.authorization.k8s.io/v1beta1 to rbac.authorization.k8s.io/v1 (#3676) --- .../templates/prometheus/prometheus-rbac.yaml | 4 ++-- .../templates/clusterrole_seldon-spartakus-volunteer.yaml | 2 +- .../clusterrolebinding_seldon-spartakus-volunteer.yaml | 2 +- notebooks/resources/ambassador-rbac.yaml | 4 ++-- operator/config/spartakus/spartakus-rbac.yaml | 4 ++-- testing/scripts/metrics.yaml | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/helm-charts/seldon-core-analytics/templates/prometheus/prometheus-rbac.yaml b/helm-charts/seldon-core-analytics/templates/prometheus/prometheus-rbac.yaml index 3093bb34a2..0cb6f5c23e 100644 --- a/helm-charts/seldon-core-analytics/templates/prometheus/prometheus-rbac.yaml +++ b/helm-charts/seldon-core-analytics/templates/prometheus/prometheus-rbac.yaml @@ -1,5 +1,5 @@ {{- if .Values.rbac.enabled }} -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: prometheus @@ -26,7 +26,7 @@ metadata: name: prometheus namespace: {{ .Release.Namespace }} --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: prometheus diff --git a/helm-charts/seldon-core-operator/templates/clusterrole_seldon-spartakus-volunteer.yaml b/helm-charts/seldon-core-operator/templates/clusterrole_seldon-spartakus-volunteer.yaml index 37fbd6382e..bebcb7b479 100644 --- a/helm-charts/seldon-core-operator/templates/clusterrole_seldon-spartakus-volunteer.yaml +++ b/helm-charts/seldon-core-operator/templates/clusterrole_seldon-spartakus-volunteer.yaml @@ -1,5 +1,5 @@ {{- if .Values.usageMetrics.enabled }} -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: seldon-spartakus-volunteer-{{ include "seldon.namespace" . }} diff --git a/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-spartakus-volunteer.yaml b/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-spartakus-volunteer.yaml index 97d3bcfd11..69f9c55aaf 100644 --- a/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-spartakus-volunteer.yaml +++ b/helm-charts/seldon-core-operator/templates/clusterrolebinding_seldon-spartakus-volunteer.yaml @@ -1,5 +1,5 @@ {{- if .Values.usageMetrics.enabled }} -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: seldon-spartakus-volunteer-{{ include "seldon.namespace" . }} diff --git a/notebooks/resources/ambassador-rbac.yaml b/notebooks/resources/ambassador-rbac.yaml index 7daf8cde68..6c8926c04b 100644 --- a/notebooks/resources/ambassador-rbac.yaml +++ b/notebooks/resources/ambassador-rbac.yaml @@ -1,5 +1,5 @@ --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: ambassador @@ -22,7 +22,7 @@ kind: ServiceAccount metadata: name: ambassador --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: ambassador diff --git a/operator/config/spartakus/spartakus-rbac.yaml b/operator/config/spartakus/spartakus-rbac.yaml index d8cf08e408..d035ebf6fb 100644 --- a/operator/config/spartakus/spartakus-rbac.yaml +++ b/operator/config/spartakus/spartakus-rbac.yaml @@ -4,7 +4,7 @@ metadata: name: seldon-spartakus-volunteer namespace: kube-system --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: seldon-spartakus-volunteer @@ -16,7 +16,7 @@ rules: verbs: - list --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: seldon-spartakus-volunteer diff --git a/testing/scripts/metrics.yaml b/testing/scripts/metrics.yaml index 32d1aa70f9..e7c153db1b 100644 --- a/testing/scripts/metrics.yaml +++ b/testing/scripts/metrics.yaml @@ -11,7 +11,7 @@ rules: resources: ["pods"] verbs: ["get", "list", "watch"] --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: metrics-server:system:auth-delegator @@ -24,7 +24,7 @@ subjects: name: metrics-server namespace: kube-system --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: metrics-server-auth-reader