File tree Expand file tree Collapse file tree 12 files changed +61
-55
lines changed
charts/spark-operator-chart Expand file tree Collapse file tree 12 files changed +61
-55
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ helm-unittest:
48
48
helm unittest charts/spark-operator-chart --strict
49
49
50
50
helm-lint :
51
- docker run --rm --workdir /workspace --volume $( PWD ) :/workspace quay.io/helmpack/chart-testing:latest ct lint
51
+ docker run --rm --workdir /workspace --volume " $$ (pwd ):/workspace" quay.io/helmpack/chart-testing:latest ct lint
52
52
53
53
helm-docs :
54
54
docker run --rm --volume " $$ (pwd):/helm-docs" -u " $( id -u) " jnorwood/helm-docs:latest
Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
2
name : spark-operator
3
3
description : A Helm chart for Spark on Kubernetes operator
4
- version : 1.2.14
5
- appVersion : v1beta2-1.4.5 -3.5.0
4
+ version : 1.2.15
5
+ appVersion : v1beta2-1.4.6 -3.5.0
6
6
keywords :
7
7
- spark
8
8
home : https://github.com/kubeflow/spark-operator
Original file line number Diff line number Diff line change 1
1
# spark-operator
2
2
3
- ![ Version: 1.2.14 ] ( https://img.shields.io/badge/Version-1.2.14 -informational?style=flat-square ) ![ AppVersion: v1beta2-1.4.5 -3.5.0] ( https://img.shields.io/badge/AppVersion-v1beta2--1.4.5 --3.5.0-informational?style=flat-square )
3
+ ![ Version: 1.2.15 ] ( https://img.shields.io/badge/Version-1.2.15 -informational?style=flat-square ) ![ AppVersion: v1beta2-1.4.6 -3.5.0] ( https://img.shields.io/badge/AppVersion-v1beta2--1.4.6 --3.5.0-informational?style=flat-square )
4
4
5
5
A Helm chart for Spark on Kubernetes operator
6
6
@@ -126,7 +126,7 @@ See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall) for command docum
126
126
| serviceAccounts.sparkoperator.create | bool | ` true ` | Create a service account for the operator |
127
127
| serviceAccounts.sparkoperator.name | string | ` "" ` | Optional name for the operator service account |
128
128
| sidecars | list | ` [] ` | Sidecar containers |
129
- | sparkJobNamespaces | list | ` [] ` | List of namespaces where to run spark jobs |
129
+ | sparkJobNamespaces | list | ` ["" ] ` | List of namespaces where to run spark jobs |
130
130
| tolerations | list | ` [] ` | List of node taints to tolerate |
131
131
| uiService.enable | bool | ` true ` | Enable UI service creation for Spark application |
132
132
| volumeMounts | list | ` [] ` | |
Original file line number Diff line number Diff line change @@ -14,23 +14,8 @@ rules:
14
14
- " "
15
15
resources :
16
16
- pods
17
- verbs :
18
- - " *"
19
- - apiGroups :
20
- - " "
21
- resources :
22
17
- services
23
- verbs :
24
- - " *"
25
- - apiGroups :
26
- - " "
27
- resources :
28
18
- configmaps
29
- verbs :
30
- - " *"
31
- - apiGroups :
32
- - " "
33
- resources :
34
19
- persistentvolumeclaims
35
20
verbs :
36
21
- " *"
Original file line number Diff line number Diff line change @@ -60,7 +60,27 @@ tests:
60
60
kind : RoleBinding
61
61
name : spark
62
62
63
- - it : Should render multiple spark roles if sparkJobNamespaces is set
63
+ - it : Should create a single spark role with namespace "" by default
64
+ documentIndex : 0
65
+ asserts :
66
+ - containsDocument :
67
+ apiVersion : rbac.authorization.k8s.io/v1
68
+ kind : Role
69
+ name : spark-role
70
+ namespace : " "
71
+
72
+ - it : Should create a single spark role binding with namespace "" by default
73
+ values :
74
+ - ../values.yaml
75
+ documentIndex : 1
76
+ asserts :
77
+ - containsDocument :
78
+ apiVersion : rbac.authorization.k8s.io/v1
79
+ kind : RoleBinding
80
+ name : spark
81
+ namespace : " "
82
+
83
+ - it : Should render multiple spark roles if sparkJobNamespaces is set with multiple values
64
84
set :
65
85
sparkJobNamespaces :
66
86
- ns1
73
93
name : spark-role
74
94
namespace : ns1
75
95
76
- - it : Should render multiple spark role bindings if sparkJobNamespaces is set
96
+ - it : Should render multiple spark role bindings if sparkJobNamespaces is set with multiple values
77
97
set :
78
98
sparkJobNamespaces :
79
99
- ns1
@@ -86,7 +106,7 @@ tests:
86
106
name : spark
87
107
namespace : ns1
88
108
89
- - it : Should render multiple spark roles if sparkJobNamespaces is set
109
+ - it : Should render multiple spark roles if sparkJobNamespaces is set with multiple values
90
110
set :
91
111
sparkJobNamespaces :
92
112
- ns1
@@ -99,7 +119,7 @@ tests:
99
119
name : spark-role
100
120
namespace : ns2
101
121
102
- - it : Should render multiple spark role bindings if sparkJobNamespaces is set
122
+ - it : Should render multiple spark role bindings if sparkJobNamespaces is set with multiple values
103
123
set :
104
124
sparkJobNamespaces :
105
125
- ns1
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ serviceAccounts:
53
53
annotations : {}
54
54
55
55
# -- List of namespaces where to run spark jobs
56
- sparkJobNamespaces : []
56
+ sparkJobNamespaces :
57
+ - " "
57
58
# - ns1
58
59
59
60
# -- Operator concurrency, higher values might increase memory usage
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ metadata:
21
21
spec :
22
22
type : Scala
23
23
mode : cluster
24
- image : " gcr.io/ spark-operator/spark:v3.1.1 "
24
+ image : " spark:3.5.0 "
25
25
imagePullPolicy : Always
26
26
mainClass : org.apache.spark.examples.SparkPi
27
- mainApplicationFile : " local:///opt/spark/examples/jars/spark-examples_2.12-3.1.1 .jar"
28
- sparkVersion : " 3.1.1 "
27
+ mainApplicationFile : " local:///opt/spark/examples/jars/spark-examples_2.12-3.5.0 .jar"
28
+ sparkVersion : " 3.5.0 "
29
29
restartPolicy :
30
30
type : Never
31
31
volumes :
37
37
coreLimit : " 1200m"
38
38
memory : " 512m"
39
39
labels :
40
- version : 3.1.1
41
- serviceAccount : spark
40
+ version : 3.5.0
41
+ serviceAccount : spark-operator-spark
42
42
volumeMounts :
43
43
- name : config-vol
44
44
mountPath : /opt/spark/mycm
47
47
instances : 1
48
48
memory : " 512m"
49
49
labels :
50
- version : 3.1.1
50
+ version : 3.5.0
51
51
volumeMounts :
52
52
- name : config-vol
53
53
mountPath : /opt/spark/mycm
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ metadata:
21
21
spec :
22
22
type : Scala
23
23
mode : cluster
24
- image : " gcr.io/ spark-operator/spark:v3.1.1 "
24
+ image : " spark:3.5.0 "
25
25
imagePullPolicy : Always
26
26
mainClass : org.apache.spark.examples.SparkPi
27
- mainApplicationFile : " local:///opt/spark/examples/jars/spark-examples_2.12-3.1.1 .jar"
28
- sparkVersion : " 3.1.1 "
27
+ mainApplicationFile : " local:///opt/spark/examples/jars/spark-examples_2.12-3.5.0 .jar"
28
+ sparkVersion : " 3.5.0 "
29
29
restartPolicy :
30
30
type : Never
31
31
volumes :
38
38
coreLimit : " 1200m"
39
39
memory : " 512m"
40
40
labels :
41
- version : 3.1.1
42
- serviceAccount : spark
41
+ version : 3.5.0
42
+ serviceAccount : spark-operator-spark
43
43
volumeMounts :
44
44
- name : " test-volume"
45
45
mountPath : " /tmp"
48
48
instances : 1
49
49
memory : " 512m"
50
50
labels :
51
- version : 3.1.1
51
+ version : 3.5.0
52
52
volumeMounts :
53
53
- name : " test-volume"
54
54
mountPath : " /tmp"
Original file line number Diff line number Diff line change 37
37
memory : " 512m"
38
38
labels :
39
39
version : 3.1.1
40
- serviceAccount : spark
40
+ serviceAccount : spark-operator-spark
41
41
executor :
42
42
cores : 1
43
43
instances : 1
Original file line number Diff line number Diff line change @@ -25,23 +25,23 @@ spec:
25
25
template :
26
26
type : Scala
27
27
mode : cluster
28
- image : " gcr.io/ spark-operator/spark:v3.1.1 "
28
+ image : " spark:3.5.0 "
29
29
imagePullPolicy : Always
30
30
mainClass : org.apache.spark.examples.SparkPi
31
- mainApplicationFile : " local:///opt/spark/examples/jars/spark-examples_2.12-3.1.1 .jar"
32
- sparkVersion : " 3.1.1 "
31
+ mainApplicationFile : " local:///opt/spark/examples/jars/spark-examples_2.12-3.5.0 .jar"
32
+ sparkVersion : " 3.5.0 "
33
33
restartPolicy :
34
34
type : Never
35
35
driver :
36
36
cores : 1
37
37
coreLimit : " 1200m"
38
38
memory : " 512m"
39
39
labels :
40
- version : 3.1.1
41
- serviceAccount : spark
40
+ version : 3.5.0
41
+ serviceAccount : spark-operator-spark
42
42
executor :
43
43
cores : 1
44
44
instances : 1
45
45
memory : " 512m"
46
46
labels :
47
- version : 3.1.1
47
+ version : 3.5.0
You can’t perform that action at this time.
0 commit comments