Skip to content

Commit

Permalink
fix(chart): remove operator namespace default for job namespaces value (
Browse files Browse the repository at this point in the history
#1989)

Signed-off-by: t3mi <t3mi@users.noreply.github.com>
  • Loading branch information
t3mi committed Apr 24, 2024
1 parent bf2ecce commit 8fc4058
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/spark-operator-chart/Chart.yaml
@@ -1,7 +1,7 @@
apiVersion: v2
name: spark-operator
description: A Helm chart for Spark on Kubernetes operator
version: 1.2.12
version: 1.2.13
appVersion: v1beta2-1.4.4-3.5.0
keywords:
- spark
Expand Down
4 changes: 2 additions & 2 deletions charts/spark-operator-chart/README.md
@@ -1,6 +1,6 @@
# spark-operator

![Version: 1.2.12](https://img.shields.io/badge/Version-1.2.12-informational?style=flat-square) ![AppVersion: v1beta2-1.4.4-3.5.0](https://img.shields.io/badge/AppVersion-v1beta2--1.4.4--3.5.0-informational?style=flat-square)
![Version: 1.2.13](https://img.shields.io/badge/Version-1.2.13-informational?style=flat-square) ![AppVersion: v1beta2-1.4.4-3.5.0](https://img.shields.io/badge/AppVersion-v1beta2--1.4.4--3.5.0-informational?style=flat-square)

A Helm chart for Spark on Kubernetes operator

Expand Down Expand Up @@ -126,7 +126,7 @@ See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall) for command docum
| serviceAccounts.sparkoperator.create | bool | `true` | Create a service account for the operator |
| serviceAccounts.sparkoperator.name | string | `""` | Optional name for the operator service account |
| sidecars | list | `[]` | Sidecar containers |
| sparkJobNamespaces | list | `[]` | List of namespaces where to run spark jobs, operator namespace is included only when list of namespaces is empty |
| sparkJobNamespaces | list | `[]` | List of namespaces where to run spark jobs |
| tolerations | list | `[]` | List of node taints to tolerate |
| uiService.enable | bool | `true` | Enable UI service creation for Spark application |
| volumeMounts | list | `[]` | |
Expand Down
4 changes: 2 additions & 2 deletions charts/spark-operator-chart/templates/deployment.yaml
Expand Up @@ -3,7 +3,7 @@

# In the post-install hook, the token corresponding to the operator service account
# is used to authenticate with the Kubernetes API server to install the secret bundle.
{{- $jobNamespaces := .Values.sparkJobNamespaces | default (list .Release.Namespace) }}
{{- $jobNamespaces := .Values.sparkJobNamespaces | default list }}
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -66,7 +66,7 @@ spec:
args:
- -v={{ .Values.logLevel }}
- -logtostderr
{{- if le (len $jobNamespaces) 1 }}
{{- if eq (len $jobNamespaces) 1 }}
- -namespace={{ index $jobNamespaces 0 }}
{{- end }}
- -enable-ui-service={{ .Values.uiService.enable}}
Expand Down
2 changes: 1 addition & 1 deletion charts/spark-operator-chart/templates/spark-rbac.yaml
@@ -1,5 +1,5 @@
{{- if or .Values.rbac.create .Values.rbac.createRole }}
{{- $jobNamespaces := .Values.sparkJobNamespaces | default (list .Release.Namespace) }}
{{- $jobNamespaces := .Values.sparkJobNamespaces | default list }}
{{- range $jobNamespace := $jobNamespaces }}
---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
2 changes: 1 addition & 1 deletion charts/spark-operator-chart/values.yaml
Expand Up @@ -52,7 +52,7 @@ serviceAccounts:
# -- Optional annotations for the operator service account
annotations: {}

# -- List of namespaces where to run spark jobs, operator namespace is included only when list of namespaces is empty
# -- List of namespaces where to run spark jobs
sparkJobNamespaces: []
# - ns1

Expand Down

0 comments on commit 8fc4058

Please sign in to comment.