Skip to content

Commit 2db9a55

Browse files
authored
feat: Add RESTART_CONTROLLER_ENABLED_LABEL constant (#1139)
* feat: Add RESTART_CONTROLLER_ENABLED_LABEL constant * changelog
1 parent bac3515 commit 2db9a55

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

crates/stackable-operator/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
77
### Added
88

99
- BREAKING: Add `objectOverrides` field to `ListenerSpec` ([#1136]).
10+
- Added `stackable_operator::constants::RESTART_CONTROLLER_ENABLED_LABEL` constant, which represents the `restarter.stackable.tech/enabled=true` label ([#1139]).
1011

1112
### Changed
1213

@@ -15,6 +16,7 @@ All notable changes to this project will be documented in this file.
1516

1617
[#1135]: https://github.com/stackabletech/operator-rs/pull/1135
1718
[#1136]: https://github.com/stackabletech/operator-rs/pull/1136
19+
[#1139]: https://github.com/stackabletech/operator-rs/pull/1139
1820

1921
## [0.101.2] - 2026-01-07
2022

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1+
use std::sync::LazyLock;
2+
3+
use crate::kvp::Label;
4+
15
pub mod secret;
6+
7+
pub static RESTART_CONTROLLER_ENABLED_LABEL: LazyLock<Label> = LazyLock::new(|| {
8+
Label::try_from(("restarter.stackable.tech/enabled", "true"))
9+
.expect("static label is always valid")
10+
});

0 commit comments

Comments
 (0)