diff --git a/charts/databricks-kube-operator/Chart.yaml b/charts/databricks-kube-operator/Chart.yaml index fff25d1..25f3598 100644 --- a/charts/databricks-kube-operator/Chart.yaml +++ b/charts/databricks-kube-operator/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: 0.7.0 name: databricks-kube-operator description: A kube-rs operator for managing Databricks API resources -version: 0.8.0 +version: 0.8.1 home: https://github.com/mach-kernel/databricks-kube-operator sources: diff --git a/charts/databricks-kube-operator/templates/rbac.yaml b/charts/databricks-kube-operator/templates/rbac.yaml index 72b0cda..1e9d263 100644 --- a/charts/databricks-kube-operator/templates/rbac.yaml +++ b/charts/databricks-kube-operator/templates/rbac.yaml @@ -1,10 +1,12 @@ {{- $svcAccount := include "databricks-kube-operator.serviceAccountName" . }} +{{- if .Values.serviceAccount.create }} --- apiVersion: v1 kind: ServiceAccount metadata: name: "{{ $svcAccount }}" namespace: {{ .Release.Namespace }} +{{- end }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole