mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-01-31 09:06:48 +00:00
67d4b5b95d
* Changed: don't use cluster wide access * Changed: bump version
34 lines
862 B
YAML
34 lines
862 B
YAML
{{- if .Values.enterpriseFeatures.enabled }}
|
|
{{- if .Values.enterpriseFeatures.clearmlApplications.enabled }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: "clearml-apps-sa"
|
|
namespace: {{ .Release.Namespace }}
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: {{ include "clearmlApplications.referenceName" . }}-kpa
|
|
rules:
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- pods
|
|
verbs: ["get", "list", "watch", "create", "patch", "delete"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: {{ include "clearmlApplications.referenceName" . }}-kpa
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: "clearml-apps-sa"
|
|
namespace: {{ .Release.Namespace }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: {{ include "clearmlApplications.referenceName" . }}-kpa
|
|
{{- end }}
|
|
{{- end }}
|