Skip to content

Commit 2f5c1d0

Browse files
committed
Set runAsGroup to 1000 rather than 0 (#283)
# Description *Please add a description here. This will become the commit message of the merge request later.*
1 parent 97e96bf commit 2f5c1d0

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44

55
### Changed
66

7+
- [BREAKING] Use Product image selection instead of version. `spec.version` has been replaced by `spec.image` ([#282]).
78
- Updated stackable image versions ([#275]).
89
- `operator-rs` `0.24.0` -> `0.27.1` ([#277]).
9-
- [BREAKING] Use Product image selection instead of version. `spec.version` has been replaced by `spec.image` ([#282]).
10+
- Set runAsGroup to 1000 rather than 0 ([#283]).
1011

1112
[#275]: https://github.com/stackabletech/hbase-operator/pull/275
1213
[#277]: https://github.com/stackabletech/hbase-operator/pull/277
1314
[#282]: https://github.com/stackabletech/hbase-operator/pull/282
15+
[#283]: https://github.com/stackabletech/hbase-operator/pull/283
1416

1517
## [0.5.0] - 2022-11-07
1618

rust/operator-binary/src/hbase_controller.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,9 @@ fn build_rolegroup_statefulset(
641641
.service_account_name(sa_name)
642642
.security_context(
643643
PodSecurityContextBuilder::new()
644-
.run_as_user(rbac::HBASE_UID)
645-
.run_as_group(0)
646-
.fs_group(1000) // Needed for secret-operator
644+
.run_as_user(1000)
645+
.run_as_group(1000)
646+
.fs_group(1000)
647647
.build(),
648648
)
649649
.build_template(),

rust/operator-binary/src/rbac.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ use stackable_operator::k8s_openapi::api::core::v1::ServiceAccount;
33
use stackable_operator::k8s_openapi::api::rbac::v1::{RoleBinding, RoleRef, Subject};
44
use stackable_operator::kube::{Resource, ResourceExt};
55

6-
/// Used as runAsUser in the pod security context. This is specified in the Hbase image file
7-
pub const HBASE_UID: i64 = 1000;
8-
96
/// Build RBAC objects for the product workloads.
107
/// The `rbac_prefix` is meant to be the product name, for example: zookeeper, airflow, etc.
118
/// and it is a assumed that a ClusterRole named `{rbac_prefix}-clusterrole` exists.

0 commit comments

Comments
 (0)