From 99993fb9f2fd2e1468ac4f60fde215002a087221 Mon Sep 17 00:00:00 2001 From: Marius Ensrud Date: Tue, 23 Feb 2021 19:34:45 +0100 Subject: [PATCH] up api --- charts/godaddy-webhook/0.1.0/templates/rbac.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/charts/godaddy-webhook/0.1.0/templates/rbac.yaml b/charts/godaddy-webhook/0.1.0/templates/rbac.yaml index b0c9c69..4980aaa 100644 --- a/charts/godaddy-webhook/0.1.0/templates/rbac.yaml +++ b/charts/godaddy-webhook/0.1.0/templates/rbac.yaml @@ -8,7 +8,7 @@ metadata: # Grant the webhook permission to read the ConfigMap containing the Kubernetes # apiserver's requestheader-ca-certificate. # This ConfigMap is automatically created by the Kubernetes apiserver. -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ include "godaddy-webhook.fullname" . }}:webhook-authentication-reader @@ -16,7 +16,7 @@ metadata: labels: {{ include "godaddy-webhook.labels" . | indent 4 }} roleRef: - apiGroup: rbac.authorization.k8s.io + apiGroup: rbac.authorization.k8s.io/v1 kind: Role name: extension-apiserver-authentication-reader subjects: @@ -27,7 +27,7 @@ subjects: --- # apiserver gets the auth-delegator role to delegate auth decisions to # the core apiserver -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ include "godaddy-webhook.fullname" . }}:auth-delegator @@ -44,7 +44,7 @@ subjects: namespace: {{ .Release.Namespace }} --- # Grant cert-manager permission to validate using our apiserver -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ include "godaddy-webhook.fullname" . }}:domain-solver @@ -58,7 +58,7 @@ rules: verbs: - 'create' --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ include "godaddy-webhook.fullname" . }}:domain-solver @@ -74,7 +74,7 @@ subjects: name: {{ .Values.certManager.serviceAccountName }} namespace: {{ .Values.certManager.namespace }} --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ include "godaddy-webhook.fullname" . }} @@ -90,7 +90,7 @@ subjects: name: {{ include "godaddy-webhook.fullname" . }} namespace: {{ .Release.Namespace }} --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ include "godaddy-webhook.fullname" . }} @@ -102,4 +102,4 @@ rules: resources: - 'secrets' verbs: - - 'get' \ No newline at end of file + - 'get'