Skip to content
Open
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
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ All notable changes to this project will be documented in this file.

### Changed

- Bump stackable-operator to 0.114.0 ([#166]).
- Bump stackable-operator to 0.116.0 ([#166], [#171]).
- Remove the product version label from PersistentVolumeClaims ([#171]).
- `envOverrides` names are now validated by the shared `EnvVarName` type rather than by
operator-specific validation code ([#171]).
- All product containers now run with `securityContext.runAsNonRoot` set to `true` to improve security ([#172]).

### Fixed
Expand All @@ -16,6 +19,7 @@ All notable changes to this project will be documented in this file.
See [our internal issue](https://github.com/stackabletech/hdfs-operator/issues/626) and [the fix](https://github.com/kube-rs/kube/pull/2042) for details ([#172]).

[#166]: https://github.com/stackabletech/opensearch-operator/pull/166
[#171]: https://github.com/stackabletech/opensearch-operator/pull/171
[#172]: https://github.com/stackabletech/opensearch-operator/pull/172

## [26.7.0] - 2026-07-21
Expand Down
20 changes: 10 additions & 10 deletions Cargo.lock

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

41 changes: 21 additions & 20 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 @@ -10,7 +10,7 @@ edition = "2024"
repository = "https://github.com/stackabletech/opensearch-operator"

[workspace.dependencies]
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.115.0", features = ["webhook"] }
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.116.0", features = ["webhook"] }

built = { version = "0.8", features = ["chrono", "git2"] }
clap = "4.6"
Expand Down
18 changes: 9 additions & 9 deletions crate-hashes.json

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

6 changes: 4 additions & 2 deletions extra/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1925,7 +1925,8 @@ spec:
default: {}
description: |-
`envOverrides` configure environment variables to be set in the Pods.
It is a map from strings to strings - environment variables and the value to set.
It is a map from environment variable names to their values. The names are validated to be
valid environment variable names.
Read the
[environment variable overrides documentation](https://docs.stackable.tech/home/nightly/concepts/overrides#env-overrides)
for more information and consult the operator specific usage guide to find out about
Expand Down Expand Up @@ -2656,7 +2657,8 @@ spec:
default: {}
description: |-
`envOverrides` configure environment variables to be set in the Pods.
It is a map from strings to strings - environment variables and the value to set.
It is a map from environment variable names to their values. The names are validated to be
valid environment variable names.
Read the
[environment variable overrides documentation](https://docs.stackable.tech/home/nightly/concepts/overrides#env-overrides)
for more information and consult the operator specific usage guide to find out about
Expand Down
5 changes: 1 addition & 4 deletions rust/operator-binary/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,7 @@ impl ValidatedCluster {
ValidatedSecurity::ManagedByApi {
tls_server_secret_class: Some(_),
..
} | ValidatedSecurity::ManagedByOperator {
tls_server_secret_class: _,
..
}
} | ValidatedSecurity::ManagedByOperator { .. }
)
}
}
Expand Down
40 changes: 10 additions & 30 deletions rust/operator-binary/src/controller/build/role_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@ use stackable_operator::{
},
},
kube::api::ObjectMeta,
kvp::{
Label, Labels,
consts::{STACKABLE_VENDOR_KEY, STACKABLE_VENDOR_VALUE},
},
kvp::Labels,
v2::{
NameIsValidLabelValue,
builder::{
meta::ownerreference_from_resource, pdb::pod_disruption_budget_builder_with_role,
},
Expand Down Expand Up @@ -278,36 +274,20 @@ impl<'a> RoleBuilder<'a> {
None,
Some(true),
))
.with_labels(self.labels())
.with_labels(self.recommended_labels())
.build()
}

/// Common labels for role resources
fn labels(&self) -> Labels {
// Well-known Kubernetes labels
let mut labels = Labels::role_selector(
&self.cluster,
&self.context_names.product_name.to_label_value(),
&ValidatedCluster::role_name().to_label_value(),
)
.unwrap();

let managed_by = Label::managed_by(
self.context_names.operator_name.as_ref(),
self.context_names.controller_name.as_ref(),
fn recommended_labels(&self) -> Labels {
stackable_operator::v2::kvp::label::recommended_labels_for_role_resources(
&self.cluster.name,
&self.context_names.product_name,
&self.cluster.product_version,
&self.context_names.operator_name,
&self.context_names.controller_name,
&ValidatedCluster::role_name(),
)
.unwrap();
let version = Label::version(self.cluster.product_version.as_ref()).unwrap();

labels.insert(managed_by);
labels.insert(version);

// Stackable-specific labels
labels
.parse_insert((STACKABLE_VENDOR_KEY, STACKABLE_VENDOR_VALUE))
.unwrap();

labels
}
}

Expand Down
Loading
Loading