Skip to content

Commit 3ee442b

Browse files
committed
fix: remove v2 / upstream comment refs
1 parent 5d9bea3 commit 3ee442b

6 files changed

Lines changed: 10 additions & 23 deletions

File tree

rust/operator-binary/src/crd/mod.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use stackable_operator::{
3535
},
3636
versioned::versioned,
3737
};
38-
use strum::{Display, EnumIter, EnumString, IntoEnumIterator};
38+
use strum::{Display, EnumIter, EnumString};
3939

4040
use crate::crd::{affinity::get_affinity, v1alpha1::ZookeeperServerRoleConfig};
4141

@@ -407,16 +407,6 @@ impl v1alpha1::ZookeeperConfig {
407407
}
408408
}
409409

410-
impl ZookeeperRole {
411-
pub fn roles() -> Vec<String> {
412-
let mut roles = vec![];
413-
for role in Self::iter() {
414-
roles.push(role.to_string())
415-
}
416-
roles
417-
}
418-
}
419-
420410
impl HasStatusCondition for v1alpha1::ZookeeperCluster {
421411
fn conditions(&self) -> Vec<ClusterCondition> {
422412
match &self.status {

rust/operator-binary/src/zk_controller.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,9 @@ mod tests {
529529

530530
#[test]
531531
fn test_seeded_operator_defaults() {
532-
// These values used to be injected by product-config from
533-
// `deploy/config-spec/properties.yaml`. They are now seeded directly by the
534-
// ConfigMap builder and must stay byte-identical (pinned by the kuttl
535-
// snapshot `tests/templates/kuttl/smoke/14-assert.yaml.j2`).
532+
// These values are seeded directly by the ConfigMap builder and must stay
533+
// byte-identical (pinned by the kuttl snapshot
534+
// `tests/templates/kuttl/smoke/14-assert.yaml.j2`).
536535
let zookeeper_yaml = r#"
537536
apiVersion: zookeeper.stackable.tech/v1alpha1
538537
kind: ZookeeperCluster

rust/operator-binary/src/zk_controller/build/properties/security_properties.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ const DEFAULT_NETWORKADDRESS_CACHE_NEGATIVE_TTL: &str = "0";
1212

1313
/// Builds the `security.properties` key/value pairs for a role group.
1414
///
15-
/// The entire file is operator-injected (the values formerly came from
16-
/// `product-config`'s `properties.yaml`), plus any user `configOverrides`.
15+
/// The entire file is operator-injected, plus any user `configOverrides`.
1716
pub fn build(rolegroup_config: &ZookeeperRoleGroupConfig) -> BTreeMap<String, String> {
1817
let mut security_properties = BTreeMap::new();
1918

rust/operator-binary/src/zk_controller/build/properties/zoo_cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub(crate) fn server_addresses(
6767
/// `server.<myid>` quorum entries (which depend on `cluster_info`).
6868
///
6969
/// Precedence (lowest to highest):
70-
/// 1. operator-injected defaults (formerly `product-config` `properties.yaml`)
70+
/// 1. operator-injected defaults
7171
/// 2. TLS / quorum settings from [`ZookeeperSecurity`]
7272
/// 3. user-set merged config (`initLimit` / `syncLimit` / `tickTime`)
7373
/// 4. `configOverrides` for `zoo.cfg`

rust/operator-binary/src/zk_controller/build/resource/statefulset.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,8 @@ pub fn build_server_rolegroup_statefulset(
161161
let zookeeper_security = &cluster.cluster_config.zookeeper_security;
162162
let metrics_port = cluster.metrics_http_port(rolegroup_config);
163163

164-
// The operator-injected environment variables (formerly produced by the
165-
// product-config `Configuration::compute_env` implementation) plus the
166-
// user-provided `envOverrides` (which win on conflict).
164+
// The operator-injected environment variables plus the user-provided `envOverrides`
165+
// (which win on conflict).
167166
let env_vars = EnvVarSet::new()
168167
.with_value(
169168
&EnvVarName::from_str_unsafe(v1alpha1::ZookeeperConfig::MYID_OFFSET),
@@ -406,7 +405,7 @@ pub fn build_server_rolegroup_statefulset(
406405
.context(AddVolumeSnafu)?;
407406

408407
// The static `vector.yaml` (in the rolegroup ConfigMap, mounted as the `config` volume) is
409-
// parameterised at runtime via env vars that the v2 `vector_container` injects. The validated
408+
// parameterised at runtime via env vars that the `vector_container` injects. The validated
410409
// Vector log config is built up-front in the validate step.
411410
if let Some(vector_log_config) = &rolegroup_config.config.logging.vector_container {
412411
let config_volume_name = VolumeName::from_str(CONFIG_VOLUME_NAME)

rust/operator-binary/src/zk_controller/dereference.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! Fetches all Kubernetes objects referenced by the [`v1alpha1::ZookeeperCluster`] spec and
44
//! returns them in [`DereferencedObjects`]. Synchronous validation of the fetched objects
5-
//! (image resolution, product-config validation, security struct assembly) happens in the
5+
//! (image resolution, config validation, security struct assembly) happens in the
66
//! validate step.
77
88
use snafu::{ResultExt, Snafu};

0 commit comments

Comments
 (0)