rancher-partner-charts/charts/prophetstor/federatorai/templates/alameda-executor/clusterrolebindings.yaml

26 lines
791 B
YAML

---
{{- if .Values.alamedaExecutor.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
{{- if .Values.global.commonAnnotations }}
{{- include "render-value" ( dict "value" .Values.global.commonAnnotations "context" .) | nindent 4 }}
{{- end }}
labels:
{{- if .Values.global.commonLabels }}
{{- include "render-value" ( dict "value" .Values.global.commonLabels "context" .) | nindent 4 }}
{{- end }}
app.kubernetes.io/part-of: federatorai
app: alameda
name: {{ .Release.Namespace }}-alameda-executor
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ .Release.Namespace }}-alameda-executor
subjects:
- kind: ServiceAccount
name: alameda-executor
namespace: {{ .Release.Namespace }}
{{- end }}