File tree 4 files changed +7
-4
lines changed
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ All notable changes to this project will be documented in this file.
13
13
- ` operator-rs ` ` 0.38.0 ` -> ` 0.41.0 ` ([ #235 ] ).
14
14
- Use 0.0.0-dev product images for testing ([ #236 ] )
15
15
- Use testing-tools 0.2.0 ([ #236 ] )
16
+ - Run as root group ([ #241 ] ).
16
17
17
18
[ #235 ] : https://github.com/stackabletech/spark-k8s-operator/pull/235
18
19
[ #236 ] : https://github.com/stackabletech/spark-k8s-operator/pull/236
19
20
[ #238 ] : https://github.com/stackabletech/spark-k8s-operator/pull/238
21
+ [ #241 ] : https://github.com/stackabletech/spark-k8s-operator/pull/241
20
22
21
23
## [ 23.4.0] - 2023-04-17
22
24
Original file line number Diff line number Diff line change @@ -51,3 +51,4 @@ pub const HISTORY_CONFIG_FILE_NAME: &str = "spark-defaults.conf";
51
51
pub const HISTORY_CONFIG_FILE_NAME_FULL : & str = "/stackable/spark/conf/spark-defaults.conf" ;
52
52
53
53
pub const SPARK_CLUSTER_ROLE : & str = "spark-k8s-clusterrole" ;
54
+ pub const SPARK_UID : i64 = 1000 ;
Original file line number Diff line number Diff line change @@ -347,8 +347,8 @@ fn build_stateful_set(
347
347
) )
348
348
} )
349
349
. security_context ( PodSecurityContext {
350
- run_as_user : Some ( 1000 ) ,
351
- run_as_group : Some ( 1000 ) ,
350
+ run_as_user : Some ( SPARK_UID ) ,
351
+ run_as_group : Some ( 0 ) ,
352
352
fs_group : Some ( 1000 ) ,
353
353
..PodSecurityContext :: default ( )
354
354
} ) ;
Original file line number Diff line number Diff line change @@ -747,8 +747,8 @@ fn build_spark_role_serviceaccount(
747
747
748
748
fn security_context ( ) -> PodSecurityContext {
749
749
PodSecurityContext {
750
- run_as_user : Some ( 1000 ) ,
751
- run_as_group : Some ( 1000 ) ,
750
+ run_as_user : Some ( SPARK_UID ) ,
751
+ run_as_group : Some ( 0 ) ,
752
752
fs_group : Some ( 1000 ) ,
753
753
..PodSecurityContext :: default ( )
754
754
}
You can’t perform that action at this time.
0 commit comments