From 68da2b8068d60bd0adae77b11c0a9f0ac523d4aa Mon Sep 17 00:00:00 2001 From: Dmitry Kartsev Date: Tue, 20 Feb 2024 10:40:21 +0200 Subject: [PATCH] add spark SCC, add image hub to operator --- charts/cnvrg-mlops/templates/ocp-scc.yml | 3 ++- charts/cnvrg-mlops/templates/operator.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/cnvrg-mlops/templates/ocp-scc.yml b/charts/cnvrg-mlops/templates/ocp-scc.yml index 6857d85d..c2a210b4 100644 --- a/charts/cnvrg-mlops/templates/ocp-scc.yml +++ b/charts/cnvrg-mlops/templates/ocp-scc.yml @@ -87,5 +87,6 @@ fsGroup: supplementalGroups: type: RunAsAny users: - - "system:serviceaccount:cnvrg:cnvrg-job" + - "system:serviceaccount:{{.Release.Namespace}}:cnvrg-job" + - "system:serviceaccount:{{.Release.Namespace}}:cnvrg-spark-job" diff --git a/charts/cnvrg-mlops/templates/operator.yml b/charts/cnvrg-mlops/templates/operator.yml index 632abe79..dc9f5fbf 100644 --- a/charts/cnvrg-mlops/templates/operator.yml +++ b/charts/cnvrg-mlops/templates/operator.yml @@ -9,6 +9,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: cnvrg-operator-role + namespace: {{ .Release.Namespace }} rules: - apiGroups: - "*"