Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
discovery advertisement, as these should remain stable regardless of listener class used to expose the REST service.
- Support objectOverrides using `.spec.objectOverrides`.
See [objectOverrides concepts page](https://docs.stackable.tech/home/nightly/concepts/overrides/#object-overrides) for details ([#725]).
- Enable the [restart-controller](https://docs.stackable.tech/home/nightly/commons-operator/restarter/), so that the Pods are automatically restarted on config changes ([#727]).

### Changed

Expand All @@ -18,6 +19,7 @@
[#716]: https://github.com/stackabletech/hbase-operator/pull/716
[#724]: https://github.com/stackabletech/hbase-operator/pull/724
[#725]: https://github.com/stackabletech/hbase-operator/pull/725
[#727]: https://github.com/stackabletech/hbase-operator/pull/727

## [25.11.0] - 2025-11-07

Expand Down
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions Cargo.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repository = "https://github.com/stackabletech/hbase-operator"

[workspace.dependencies]
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.8.0" }
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.101.2", features = ["telemetry", "versioned"] }
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.102.0", features = ["telemetry", "versioned"] }

anyhow = "1.0"
built = { version = "0.8", features = ["chrono", "git2"] }
Expand Down
14 changes: 7 additions & 7 deletions crate-hashes.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions rust/operator-binary/src/hbase_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ use stackable_operator::{
product_image_selection::{self, ResolvedProductImage},
rbac::build_rbac_resources,
},
constants::RESTART_CONTROLLER_ENABLED_LABEL,
k8s_openapi::{
api::{
apps::v1::{StatefulSet, StatefulSetSpec},
Expand Down Expand Up @@ -442,6 +443,10 @@ pub async fn reconcile_hbase(
.with_context(|_| ApplyRoleGroupConfigSnafu {
rolegroup: rolegroup.clone(),
})?;

// Note: The StatefulSet needs to be applied after all ConfigMaps and Secrets it mounts
// to prevent unnecessary Pod restarts.
// See https://github.com/stackabletech/commons-operator/issues/111 for details.
ss_cond_builder.add(
cluster_resources
.add(client, rg_statefulset)
Expand Down Expand Up @@ -1095,6 +1100,7 @@ fn build_rolegroup_statefulset(
&rolegroup_ref.role_group,
))
.context(ObjectMetaSnafu)?
.with_label(RESTART_CONTROLLER_ENABLED_LABEL.to_owned())
.build();

let statefulset_match_labels = Labels::role_group_selector(
Expand Down
9 changes: 9 additions & 0 deletions tests/templates/kuttl/smoke/30-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: test-hbase-master-default
generation: 1 # There should be no unneeded Pod restarts
labels:
restarter.stackable.tech/enabled: "true"
spec:
template:
spec:
Expand All @@ -21,6 +24,9 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: test-hbase-regionserver-default
generation: 1 # There should be no unneeded Pod restarts
labels:
restarter.stackable.tech/enabled: "true"
spec:
template:
spec:
Expand All @@ -33,6 +39,9 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: test-hbase-restserver-default
generation: 1 # There should be no unneeded Pod restarts
labels:
restarter.stackable.tech/enabled: "true"
spec:
template:
spec:
Expand Down