|
|
|
@ -8,7 +8,7 @@ metadata:
|
|
|
|
# Grant the webhook permission to read the ConfigMap containing the Kubernetes
|
|
|
|
# Grant the webhook permission to read the ConfigMap containing the Kubernetes
|
|
|
|
# apiserver's requestheader-ca-certificate.
|
|
|
|
# apiserver's requestheader-ca-certificate.
|
|
|
|
# This ConfigMap is automatically created by the Kubernetes apiserver.
|
|
|
|
# This ConfigMap is automatically created by the Kubernetes apiserver.
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: RoleBinding
|
|
|
|
kind: RoleBinding
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}:webhook-authentication-reader
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}:webhook-authentication-reader
|
|
|
|
@ -16,7 +16,7 @@ metadata:
|
|
|
|
labels:
|
|
|
|
labels:
|
|
|
|
{{ include "godaddy-webhook.labels" . | indent 4 }}
|
|
|
|
{{ include "godaddy-webhook.labels" . | indent 4 }}
|
|
|
|
roleRef:
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
apiGroup: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
kind: Role
|
|
|
|
name: extension-apiserver-authentication-reader
|
|
|
|
name: extension-apiserver-authentication-reader
|
|
|
|
subjects:
|
|
|
|
subjects:
|
|
|
|
@ -27,7 +27,7 @@ subjects:
|
|
|
|
---
|
|
|
|
---
|
|
|
|
# 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/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}:auth-delegator
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}:auth-delegator
|
|
|
|
@ -44,7 +44,7 @@ subjects:
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
---
|
|
|
|
---
|
|
|
|
# Grant cert-manager permission to validate using our apiserver
|
|
|
|
# Grant cert-manager permission to validate using our apiserver
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}:domain-solver
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}:domain-solver
|
|
|
|
@ -58,7 +58,7 @@ rules:
|
|
|
|
verbs:
|
|
|
|
verbs:
|
|
|
|
- 'create'
|
|
|
|
- 'create'
|
|
|
|
---
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}:domain-solver
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}:domain-solver
|
|
|
|
@ -74,7 +74,7 @@ subjects:
|
|
|
|
name: {{ .Values.certManager.serviceAccountName }}
|
|
|
|
name: {{ .Values.certManager.serviceAccountName }}
|
|
|
|
namespace: {{ .Values.certManager.namespace }}
|
|
|
|
namespace: {{ .Values.certManager.namespace }}
|
|
|
|
---
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}
|
|
|
|
@ -90,7 +90,7 @@ subjects:
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
---
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}
|
|
|
|
name: {{ include "godaddy-webhook.fullname" . }}
|
|
|
|
@ -102,4 +102,4 @@ rules:
|
|
|
|
resources:
|
|
|
|
resources:
|
|
|
|
- 'secrets'
|
|
|
|
- 'secrets'
|
|
|
|
verbs:
|
|
|
|
verbs:
|
|
|
|
- 'get'
|
|
|
|
- 'get'
|
|
|
|
|