Skip to content

Commit a96fc63

Browse files
committed
Bump to op-rs main
1 parent ca5c56d commit a96fc63

File tree

4 files changed

+48
-25
lines changed

4 files changed

+48
-25
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ tokio = { version = "1.40", features = ["full"] }
3131
tokio-zookeeper = "0.4"
3232
tracing = "0.1"
3333

34-
#[patch."https://github.com/stackabletech/operator-rs"]
35-
# stackable-operator = { git = "https://github.com/stackabletech//operator-rs.git", branch = "main" }
34+
[patch."https://github.com/stackabletech/operator-rs"]
35+
stackable-operator = { git = "https://github.com/stackabletech//operator-rs.git", branch = "main" }
36+
# stackable-operator = { path = "/home/sbernauer/stackable/operator-rs/main/crates/stackable-operator" }
3637

3738
[patch.crates-io]
3839
# tokio-zookeeper = { path = "../tokio-zookeeper" }

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ pub mod versioned {
121121
namespaced,
122122
crates(
123123
kube_core = "stackable_operator::kube::core",
124+
kube_client = "stackable_operator::kube::client",
124125
k8s_openapi = "stackable_operator::k8s_openapi",
125-
schemars = "stackable_operator::schemars"
126+
schemars = "stackable_operator::schemars",
127+
versioned = "stackable_operator::versioned",
126128
)
127129
))]
128130
#[serde(rename_all = "camelCase")]
@@ -301,8 +303,10 @@ pub mod versioned {
301303
namespaced,
302304
crates(
303305
kube_core = "stackable_operator::kube::core",
306+
kube_client = "stackable_operator::kube::client",
304307
k8s_openapi = "stackable_operator::k8s_openapi",
305-
schemars = "stackable_operator::schemars"
308+
schemars = "stackable_operator::schemars",
309+
versioned = "stackable_operator::versioned",
306310
)
307311
))]
308312
#[serde(rename_all = "camelCase")]

rust/operator-binary/src/main.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use std::sync::Arc;
22

33
use clap::Parser;
4-
use crd::{APP_NAME, OPERATOR_NAME, ZookeeperCluster, ZookeeperZnode, v1alpha1};
4+
use crd::{
5+
APP_NAME, OPERATOR_NAME, ZookeeperCluster, ZookeeperClusterVersion, ZookeeperZnode,
6+
ZookeeperZnodeVersion, v1alpha1,
7+
};
58
use futures::{StreamExt, pin_mut};
69
use stackable_operator::{
710
YamlSchema,
@@ -53,9 +56,9 @@ async fn main() -> anyhow::Result<()> {
5356
let opts = Opts::parse();
5457
match opts.cmd {
5558
Command::Crd => {
56-
ZookeeperCluster::merged_crd(ZookeeperCluster::V1Alpha1)?
59+
ZookeeperCluster::merged_crd(ZookeeperClusterVersion::V1Alpha1)?
5760
.print_yaml_schema(built_info::PKG_VERSION, SerializeOptions::default())?;
58-
ZookeeperZnode::merged_crd(ZookeeperZnode::V1Alpha1)?
61+
ZookeeperZnode::merged_crd(ZookeeperZnodeVersion::V1Alpha1)?
5962
.print_yaml_schema(built_info::PKG_VERSION, SerializeOptions::default())?;
6063
}
6164
Command::Run(ProductOperatorRun {

0 commit comments

Comments
 (0)