adapt changes from upstream
This commit is contained in:
parent
d63c358b6d
commit
ea1b19dfd3
@ -24,13 +24,34 @@ metadata:
|
|||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: Role
|
kind: Role
|
||||||
name: extension-apiserver-authentication-reader
|
name: {{ include "cert-manager-webhook-dnspod.fullname" . }}:webhook-authentication-reader
|
||||||
subjects:
|
subjects:
|
||||||
- apiGroup: ""
|
- apiGroup: ""
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
name: {{ include "cert-manager-webhook-dnspod.fullname" . }}
|
name: {{ include "cert-manager-webhook-dnspod.fullname" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
---
|
---
|
||||||
|
# Once we no longer have to support Kubernetes versions lower than 1.17, we
|
||||||
|
# can remove this custom defined Role in favour of the system-provisioned
|
||||||
|
# extension-apiserver-authentication-reader Role resource in kube-system.
|
||||||
|
# See https://github.com/kubernetes/kubernetes/issues/86359 for more details.
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
|
kind: Role
|
||||||
|
metadata:
|
||||||
|
name: {{ include "cert-manager-webhook-dnspod.fullname" . }}:webhook-authentication-reader
|
||||||
|
namespace: kube-system
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resourceNames:
|
||||||
|
- extension-apiserver-authentication
|
||||||
|
resources:
|
||||||
|
- configmaps
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
---
|
||||||
# apiserver gets the auth-delegator role to delegate auth decisions to
|
# apiserver gets the auth-delegator role to delegate auth decisions to
|
||||||
# the core apiserver
|
# the core apiserver
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user