rancher-partner-charts/charts/cockroach-labs/cockroachdb/12.0.5/templates/role-certRotateSelfSigner.yaml

28 lines
885 B
YAML
Raw Normal View History

2022-10-26 08:01:31 +00:00
{{- if and .Values.tls.enabled .Values.tls.certs.selfSigner.enabled }}
2021-06-24 01:55:05 +00:00
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
2022-10-26 08:01:31 +00:00
name: {{ template "rotatecerts.fullname" . }}
2021-06-24 01:55:05 +00:00
namespace: {{ .Release.Namespace | quote }}
labels:
helm.sh/chart: {{ template "cockroachdb.chart" . }}
app.kubernetes.io/name: {{ template "cockroachdb.name" . }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- apiGroups: [""]
resources: ["secrets"]
2022-10-26 08:01:31 +00:00
verbs: ["create", "get", "update", "delete"]
- apiGroups: ["apps"]
resources: ["statefulsets"]
2021-06-24 01:55:05 +00:00
verbs: ["get"]
2022-10-26 08:01:31 +00:00
resourceNames:
- {{ template "cockroachdb.fullname" . }}
- apiGroups: [""]
resources: ["pods"]
verbs: ["delete", "get"]
2021-06-24 01:55:05 +00:00
{{- end }}