Skip to content

Commit da95a26

Browse files
committed
chore: Bump stackable-operator to 0.94.0 and update other dependencies
1 parent 2ec3f72 commit da95a26

File tree

8 files changed

+1200
-1820
lines changed

8 files changed

+1200
-1820
lines changed

Cargo.lock

Lines changed: 393 additions & 557 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.nix

Lines changed: 777 additions & 1230 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repository = "https://github.com/stackabletech/zookeeper-operator"
1111

1212
[workspace.dependencies]
1313
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.7.0" }
14-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", features = ["telemetry", "versioned"], tag = "stackable-operator-0.93.1" }
14+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", features = ["telemetry", "versioned"], tag = "stackable-operator-0.94.0" }
1515

1616
anyhow = "1.0"
1717
built = { version = "0.8", features = ["chrono", "git2"] }

crate-hashes.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/helm/zookeeper-operator/crds/crds.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -770,11 +770,6 @@ spec:
770770
format: date-time
771771
nullable: true
772772
type: string
773-
lastUpdateTime:
774-
description: The last time this condition was updated.
775-
format: date-time
776-
nullable: true
777-
type: string
778773
message:
779774
description: A human readable message indicating details about the transition.
780775
nullable: true

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

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -119,24 +119,27 @@ pub enum LoggingFramework {
119119
LOGBACK,
120120
}
121121

122-
#[versioned(version(name = "v1alpha1"))]
122+
#[versioned(
123+
version(name = "v1alpha1"),
124+
crates(
125+
kube_core = "stackable_operator::kube::core",
126+
kube_client = "stackable_operator::kube::client",
127+
k8s_openapi = "stackable_operator::k8s_openapi",
128+
schemars = "stackable_operator::schemars",
129+
versioned = "stackable_operator::versioned",
130+
)
131+
)]
123132
pub mod versioned {
124133
/// A ZooKeeper cluster stacklet. This resource is managed by the Stackable operator for Apache ZooKeeper.
125134
/// Find more information on how to use it and the resources that the operator generates in the
126135
/// [operator documentation](DOCS_BASE_URL_PLACEHOLDER/zookeeper/).
127136
#[derive(Clone, CustomResource, Debug, Deserialize, JsonSchema, PartialEq, Serialize)]
128-
#[versioned(k8s(
137+
#[versioned(crd(
129138
group = "zookeeper.stackable.tech",
130-
kind = "ZookeeperCluster",
131139
plural = "zookeeperclusters",
132140
shortname = "zk",
133141
status = "v1alpha1::ZookeeperClusterStatus",
134142
namespaced,
135-
crates(
136-
kube_core = "stackable_operator::kube::core",
137-
k8s_openapi = "stackable_operator::k8s_openapi",
138-
schemars = "stackable_operator::schemars"
139-
)
140143
))]
141144
#[serde(rename_all = "camelCase")]
142145
pub struct ZookeeperClusterSpec {
@@ -293,19 +296,13 @@ pub mod versioned {
293296
/// You can learn more about this in the
294297
/// [Isolating clients with ZNodes usage guide](DOCS_BASE_URL_PLACEHOLDER/zookeeper/usage_guide/isolating_clients_with_znodes).
295298
#[derive(Clone, CustomResource, Debug, Deserialize, JsonSchema, PartialEq, Serialize)]
296-
#[versioned(k8s(
299+
#[versioned(crd(
297300
group = "zookeeper.stackable.tech",
298-
kind = "ZookeeperZnode",
299301
plural = "zookeeperznodes",
300302
shortname = "zno",
301303
shortname = "znode",
302304
status = "v1alpha1::ZookeeperZnodeStatus",
303305
namespaced,
304-
crates(
305-
kube_core = "stackable_operator::kube::core",
306-
k8s_openapi = "stackable_operator::k8s_openapi",
307-
schemars = "stackable_operator::schemars"
308-
)
309306
))]
310307
#[serde(rename_all = "camelCase")]
311308
pub struct ZookeeperZnodeSpec {

rust/operator-binary/src/main.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
// TODO: Look into how to properly resolve `clippy::result_large_err`.
2+
// This will need changes in our and upstream error types.
3+
#![allow(clippy::result_large_err)]
14
use std::sync::Arc;
25

36
use clap::Parser;
4-
use crd::{APP_NAME, OPERATOR_NAME, ZookeeperCluster, ZookeeperZnode, v1alpha1};
7+
use crd::{
8+
APP_NAME, OPERATOR_NAME, ZookeeperCluster, ZookeeperClusterVersion, ZookeeperZnode,
9+
ZookeeperZnodeVersion, v1alpha1,
10+
};
511
use futures::{StreamExt, pin_mut};
612
use stackable_operator::{
713
YamlSchema,
@@ -54,9 +60,9 @@ async fn main() -> anyhow::Result<()> {
5460
let opts = Opts::parse();
5561
match opts.cmd {
5662
Command::Crd => {
57-
ZookeeperCluster::merged_crd(ZookeeperCluster::V1Alpha1)?
63+
ZookeeperCluster::merged_crd(ZookeeperClusterVersion::V1Alpha1)?
5864
.print_yaml_schema(built_info::PKG_VERSION, SerializeOptions::default())?;
59-
ZookeeperZnode::merged_crd(ZookeeperZnode::V1Alpha1)?
65+
ZookeeperZnode::merged_crd(ZookeeperZnodeVersion::V1Alpha1)?
6066
.print_yaml_schema(built_info::PKG_VERSION, SerializeOptions::default())?;
6167
}
6268
Command::Run(ProductOperatorRun {

rust/operator-binary/src/zk_controller.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ impl ReconcilerError for Error {
329329
Error::ApplyRoleBinding { .. } => None,
330330
Error::BuildRbacResources { .. } => None,
331331
Error::DeleteOrphans { .. } => None,
332-
Error::VectorAggregatorConfigMapMissing { .. } => None,
332+
Error::VectorAggregatorConfigMapMissing => None,
333333
Error::InvalidLoggingConfig { .. } => None,
334334
Error::FailedToInitializeSecurityContext { .. } => None,
335335
Error::FailedToResolveConfig { .. } => None,
@@ -786,7 +786,6 @@ pub fn build_role_listener_pvc(
786786
&ListenerReference::ListenerName(group_listener_name.to_string()),
787787
unversioned_recommended_labels,
788788
)
789-
.expect("ListenerOperatorVolumeSourceBuilder::new always returns Ok()")
790789
.build_pvc(LISTENER_VOLUME_NAME.to_string())
791790
.context(BuildListenerPersistentVolumeSnafu)
792791
}

0 commit comments

Comments
 (0)