adapt changes from upstream

This commit is contained in:
Hanfei Shen 2020-03-04 08:47:24 +08:00
parent d63c358b6d
commit ea1b19dfd3
No known key found for this signature in database
GPG Key ID: 8645106F29EA1F55

View File

@ -24,13 +24,34 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: extension-apiserver-authentication-reader
name: {{ include "cert-manager-webhook-dnspod.fullname" . }}:webhook-authentication-reader
subjects:
- apiGroup: ""
kind: ServiceAccount
name: {{ include "cert-manager-webhook-dnspod.fullname" . }}
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
# the core apiserver
apiVersion: rbac.authorization.k8s.io/v1beta1