Files
charts/bitnami/spring-cloud-dataflow/templates/rolebinding.yaml
Javier J. Salmerón-García 3f7ed3f9f5 [bitnami/scdf] General improvements (#5719)
* [bitnami/scdf] General improvements

* Add TLS section

* Update bitnami/spring-cloud-dataflow/README.md

Co-authored-by: Juan Ariza Toledano <juanariza@vmware.com>

* Apply suggestions

Co-authored-by: Juan Ariza Toledano <juanariza@vmware.com>
2021-03-08 12:52:57 +01:00

23 lines
835 B
YAML

{{- if .Values.rbac.create }}
kind: RoleBinding
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
metadata:
name: {{ include "scdf.fullname" . }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
namespace: {{ .Release.Namespace }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
roleRef:
kind: Role
name: {{ include "scdf.fullname" . }}
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: {{ include "scdf.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}