mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
* [bitnami/sealed-secrets] Remove namespace field for cluster wide resources Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Apply suggestions from code review Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> --------- Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
22 lines
945 B
YAML
22 lines
945 B
YAML
{{- if and .Values.rbac.create .Values.rbac.pspEnabled }}
|
|
kind: ClusterRoleBinding
|
|
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
|
|
metadata:
|
|
name: {{ printf "%s-psp" (include "common.names.fullname.namespace" .) }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: {{ printf "%s-psp" (include "common.names.fullname.namespace" .) }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "sealed-secrets.serviceAccountName" . }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
{{ end }}
|