Skip to content

Commit 8d456d7

Browse files
authored
chore: Bump dependencies (#431)
* chore: bump external dependencies * chore: bump stackable-operator * chore: regenerate-nix * chore: use major.minor minimum versions * chore: use merged h2 patch branch * chore(nix): make regenerate-nix
1 parent 7ccb20b commit 8d456d7

File tree

15 files changed

+2575
-2879
lines changed

15 files changed

+2575
-2879
lines changed

Cargo.lock

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

Cargo.nix

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

Cargo.toml

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,40 @@ repository = "https://github.com/stackabletech/secret-operator"
1313
[workspace.dependencies]
1414
anyhow = "1.0"
1515
async-trait = "0.1"
16-
bindgen = "0.66"
17-
built = { version = "0.6", features = ["chrono", "git2"] }
18-
byteorder = "1.4"
19-
clap = "4.3"
16+
bindgen = "0.69"
17+
built = { version = "0.7", features = ["chrono", "git2"] }
18+
byteorder = "1.5"
19+
clap = "4.5"
2020
futures = { version = "0.3", features = ["compat"] }
21-
h2 = "=0.3.18" # We need to keep this in sync with our patched h2 build
22-
ldap3 = { version = "0.11", default-features = false, features = [
23-
"gssapi",
24-
"tls",
25-
] }
21+
h2 = "=0.3.26" # We need to keep this in sync with our patched h2 build
22+
ldap3 = { version = "0.11", default-features = false, features = ["gssapi", "tls"] }
2623
libc = "0.2"
2724
native-tls = "0.2"
2825
openssl = "0.10"
2926
p12 = "0.6"
3027
pin-project = "1.1"
3128
pkg-config = "0.3"
32-
prost = "0.11"
33-
prost-types = "0.11"
29+
prost = "0.12"
30+
prost-types = "0.12"
3431
rand = "0.8"
3532
serde = { version = "1.0", features = ["derive"] }
3633
serde_json = "1.0"
3734
serde_yaml = "0.9"
38-
snafu = "0.7"
35+
snafu = "0.8"
3936
socket2 = { version = "0.5", features = ["all"] }
40-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.64.0", features = [
41-
"time",
42-
] }
43-
strum = { version = "0.25", features = ["derive"] }
44-
sys-mount = { version = "2.1", default-features = false }
45-
tempfile = "3.3"
37+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.67.1", features = ["time"] }
38+
strum = { version = "0.26", features = ["derive"] }
39+
sys-mount = { version = "3.0", default-features = false }
40+
tempfile = "3.10"
4641
time = { version = "0.3", features = ["parsing"] }
47-
tokio = { version = "1.29", features = ["full"] }
42+
tokio = { version = "1.37", features = ["full"] }
4843
tokio-stream = { version = "0.1", features = ["net"] }
49-
tonic = "0.9"
50-
tonic-build = "0.9"
51-
tonic-reflection = "0.9"
44+
tonic = "0.11.0"
45+
tonic-build = "0.11.0"
46+
tonic-reflection = "0.11.0"
5247
tracing = "0.1"
5348
tracing-subscriber = "0.3"
54-
uuid = { version = "1.2", features = ["v4"] }
49+
uuid = { version = "1.8.0", features = ["v4"] }
5550
yasna = "0.5"
5651

5752
[patch.crates-io]

crate-hashes.json

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

rust/krb5-provision-keytab/src/active_directory.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::credential_cache::{self, CredentialCache};
1414
pub enum Error {
1515
#[snafu(display("failed to retrieve LDAP TLS CA {ca_ref}"))]
1616
GetLdapTlsCa {
17-
source: stackable_operator::error::Error,
17+
source: stackable_operator::client::Error,
1818
ca_ref: ObjectRef<Secret>,
1919
},
2020

@@ -38,21 +38,21 @@ pub enum Error {
3838

3939
#[snafu(display("failed to init Kubernetes client"))]
4040
KubeInit {
41-
source: stackable_operator::error::Error,
41+
source: stackable_operator::client::Error,
4242
},
4343

4444
#[snafu(display("failed to unparse Kerberos principal"))]
4545
UnparsePrincipal { source: krb5::Error },
4646

4747
#[snafu(display("failed to get password cache {password_cache_ref}"))]
4848
GetPasswordCache {
49-
source: stackable_operator::error::Error,
49+
source: stackable_operator::client::Error,
5050
password_cache_ref: ObjectRef<Secret>,
5151
},
5252

5353
#[snafu(display("failed to update password cache {password_cache_ref}"))]
5454
UpdatePasswordCache {
55-
source: stackable_operator::error::Error,
55+
source: stackable_operator::client::Error,
5656
password_cache_ref: ObjectRef<Secret>,
5757
},
5858

rust/krb5-provision-keytab/src/credential_cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ use stackable_secret_operator_crd_utils::SecretReference;
1010
pub enum Error {
1111
#[snafu(display("failed to load initial cache from {cache_ref}"))]
1212
GetInitialCache {
13-
source: stackable_operator::error::Error,
13+
source: stackable_operator::client::Error,
1414
cache_ref: ObjectRef<Secret>,
1515
},
1616

1717
#[snafu(display("failed to save credential {key} to {cache_ref}"))]
1818
SaveToCache {
19-
source: stackable_operator::error::Error,
19+
source: stackable_operator::client::Error,
2020
key: String,
2121
cache_ref: ObjectRef<Secret>,
2222
},

rust/krb5-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn main() {
2525
.must_use_type("krb5_error_code")
2626
.must_use_type("kadm5_ret_t")
2727
// .default_macro_constant_type(bindgen::MacroTypeVariation::Signed)
28-
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
28+
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
2929
.generate()
3030
.expect("Unable to generate bindings");
3131
let out_path = PathBuf::from(env::var_os("OUT_DIR").expect("OUT_DIR not set"));

rust/operator-binary/build.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,5 @@ fn main() {
88
.file_descriptor_set_path(out_dir.join("file_descriptor_set.bin"))
99
.compile(&["csi.proto"], &["vendor/csi"])
1010
.unwrap();
11-
built::write_built_file_with_opts(
12-
// built's env module depends on a whole bunch of variables that crate2nix doesn't provide
13-
// so we grab the specific env variables that we care about out ourselves instead.
14-
built::Options::default().set_env(false),
15-
"Cargo.toml".as_ref(),
16-
&out_dir.join("built.rs"),
17-
)
18-
.unwrap();
11+
built::write_built_file().unwrap();
1912
}

rust/operator-binary/src/backend/dynamic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub async fn from_class(
138138
pub enum FromSelectorError {
139139
#[snafu(display("failed to get {class}"))]
140140
GetSecretClass {
141-
source: stackable_operator::error::Error,
141+
source: stackable_operator::client::Error,
142142
class: ObjectRef<SecretClass>,
143143
},
144144

rust/operator-binary/src/backend/k8s_search.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ const LABEL_SCOPE_LISTENER: &str = "secrets.stackable.tech/listener";
3030
pub enum Error {
3131
#[snafu(display("failed to build Secret selector"))]
3232
SecretSelector {
33-
source: stackable_operator::error::Error,
33+
source: stackable_operator::kvp::SelectorError,
3434
},
3535

3636
#[snafu(display("failed to query for secrets"))]
3737
SecretQuery {
38-
source: stackable_operator::error::Error,
38+
source: stackable_operator::client::Error,
3939
},
4040

4141
#[snafu(display("no Secrets matched label selector {label_selector:?}"))]

rust/operator-binary/src/backend/kerberos_keytab.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub enum Error {
2929

3030
#[snafu(display("failed to load admin keytab from {secret}"))]
3131
LoadAdminKeytab {
32-
source: stackable_operator::error::Error,
32+
source: stackable_operator::client::Error,
3333
secret: ObjectRef<Secret>,
3434
},
3535

rust/operator-binary/src/backend/pod_info.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub enum FromPodError {
4444

4545
#[snafu(display("failed to get {node}"))]
4646
GetNode {
47-
source: stackable_operator::error::Error,
47+
source: stackable_operator::client::Error,
4848
node: ObjectRef<Node>,
4949
},
5050

@@ -53,21 +53,21 @@ pub enum FromPodError {
5353

5454
#[snafu(display("failed to get listener PVC {listener_pvc} for volume {listener_volume}"))]
5555
GetListenerPvc {
56-
source: stackable_operator::error::Error,
56+
source: stackable_operator::client::Error,
5757
listener_volume: String,
5858
listener_pvc: ObjectRef<PersistentVolumeClaim>,
5959
},
6060

6161
#[snafu(display("failed to get {listener} for volume {listener_volume}"))]
6262
GetListener {
63-
source: stackable_operator::error::Error,
63+
source: stackable_operator::client::Error,
6464
listener_volume: String,
6565
listener: ObjectRef<Listener>,
6666
},
6767

6868
#[snafu(display("failed to get {listener_class} for volume {listener_volume}"))]
6969
GetListenerClass {
70-
source: stackable_operator::error::Error,
70+
source: stackable_operator::client::Error,
7171
listener_volume: String,
7272
listener_class: ObjectRef<ListenerClass>,
7373
},
@@ -88,7 +88,7 @@ pub enum FromPodError {
8888

8989
#[snafu(display("failed to get {pod_listeners} for {pod}"))]
9090
GetPodListeners {
91-
source: stackable_operator::error::Error,
91+
source: stackable_operator::client::Error,
9292
pod_listeners: ObjectRef<PodListeners>,
9393
pod: ObjectRef<Pod>,
9494
},

rust/operator-binary/src/csi_server/controller.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ enum CreateVolumeError {
3636

3737
#[snafu(display("failed to load {pvc}"))]
3838
FindPvc {
39-
source: stackable_operator::error::Error,
39+
source: stackable_operator::client::Error,
4040
pvc: ObjectRef<PersistentVolumeClaim>,
4141
},
4242

@@ -47,7 +47,7 @@ enum CreateVolumeError {
4747

4848
#[snafu(display("failed to get pod for volume"))]
4949
GetPod {
50-
source: stackable_operator::error::Error,
50+
source: stackable_operator::client::Error,
5151
},
5252

5353
#[snafu(display("failed to parse pod details"))]

rust/operator-binary/src/csi_server/node.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use openssl::sha::Sha256;
88
use serde::{de::IntoDeserializer, Deserialize};
99
use snafu::{ResultExt, Snafu};
1010
use stackable_operator::{
11-
builder::ObjectMetaBuilder,
11+
builder::meta::ObjectMetaBuilder,
1212
k8s_openapi::api::core::v1::Pod,
1313
kvp::{AnnotationError, Annotations},
1414
};
@@ -45,7 +45,7 @@ enum PublishError {
4545

4646
#[snafu(display("failed to get pod for volume"))]
4747
GetPod {
48-
source: stackable_operator::error::Error,
48+
source: stackable_operator::client::Error,
4949
},
5050

5151
#[snafu(display("failed to parse pod details"))]
@@ -94,7 +94,7 @@ enum PublishError {
9494

9595
#[snafu(display("failed to tag pod with expiry metadata"))]
9696
TagPod {
97-
source: stackable_operator::error::Error,
97+
source: stackable_operator::client::Error,
9898
},
9999

100100
#[snafu(display("failed to build annotation"))]

rust/operator-binary/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,14 @@ struct SecretOperatorRun {
5252

5353
mod built_info {
5454
include!(concat!(env!("OUT_DIR"), "/built.rs"));
55-
pub const TARGET: Option<&str> = option_env!("TARGET");
56-
pub const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
5755
}
5856

5957
#[tokio::main]
6058
async fn main() -> anyhow::Result<()> {
6159
let opts = Opts::parse();
6260
match opts.cmd {
6361
stackable_operator::cli::Command::Crd => {
64-
crd::SecretClass::print_yaml_schema(built_info::CARGO_PKG_VERSION)?;
62+
crd::SecretClass::print_yaml_schema(built_info::PKG_VERSION)?;
6563
}
6664
stackable_operator::cli::Command::Run(SecretOperatorRun {
6765
csi_endpoint,
@@ -78,7 +76,7 @@ async fn main() -> anyhow::Result<()> {
7876
crate_description!(),
7977
crate_version!(),
8078
built_info::GIT_VERSION,
81-
built_info::TARGET.unwrap_or("unknown target"),
79+
built_info::TARGET,
8280
built_info::BUILT_TIME_UTC,
8381
built_info::RUSTC_VERSION,
8482
);

0 commit comments

Comments
 (0)