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

82 lines
1.5 KiB
YAML

---
{{- if .Values.alamedaExecutor.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
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
rules:
- apiGroups:
- ""
resources:
- resourcequotas
verbs:
- create
- list
- get
- patch
- delete
- apiGroups:
- apps
- extensions
resources:
- replicasets
- deployments
verbs:
- get
- list
- update
- patch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- get
- list
- update
- patch
- apiGroups:
- apps.openshift.io
resources:
- deploymentconfigs
verbs:
- get
- list
- update
- patch
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- list
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- apiGroups:
- policy
resources:
- podsecuritypolicies
verbs:
- use
- apiGroups:
- security.openshift.io
resources:
- securitycontextconstraints
verbs:
- use
{{- end }}