From 8e1aaf6af2cc039e4545e27366a84bd220cb23e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Pi=C4=99kos?= Date: Mon, 9 Sep 2024 20:45:34 +0200 Subject: [PATCH] test --- .../flink-k8s-operator/flink-operator-rolebinding.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/templates/flink-k8s-operator/flink-operator-rolebinding.yaml b/src/templates/flink-k8s-operator/flink-operator-rolebinding.yaml index ca3ccdc..81f3393 100644 --- a/src/templates/flink-k8s-operator/flink-operator-rolebinding.yaml +++ b/src/templates/flink-k8s-operator/flink-operator-rolebinding.yaml @@ -1,15 +1,16 @@ -{{- if and (hasKey .Values "enterprise.flinkK8sOperatorDeploymentManager") .Values.enterprise.flinkK8sOperatorDeploymentManager.enabled }} +{{- with .Values.enterprise.flinkK8sOperatorDeploymentManager -}} +{{- if .enabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: - name: {{ default "flink-operator" .Values.enterprise.flinkK8sOperatorDeploymentManager.flinkOperatorRole }}-rolebinding + name: {{ default "flink-operator" .flinkOperatorRole }}-rolebinding labels: {{ include "nussknacker.labels" . | nindent 4 }} subjects: - kind: ServiceAccount - name: {{ default "flink-service-account" .Values.enterprise.flinkK8sOperatorDeploymentManager.flinkServiceAccount }} + name: {{ default "flink-service-account" .flinkServiceAccount }} roleRef: kind: Role - name: {{ default "flink-operator" .Values.enterprise.flinkK8sOperatorDeploymentManager.flinkOperatorRole }} + name: {{ default "flink-operator" .flinkOperatorRole }} apiGroup: rbac.authorization.k8s.io {{- end }} \ No newline at end of file