Skip to content

Commit 7aa4464

Browse files
committed
Merge remote-tracking branch 'origin/main' into refactor/remove-product-config
2 parents ec2224e + 0ba74c4 commit 7aa4464

5 files changed

Lines changed: 17 additions & 17 deletions

File tree

Cargo.nix

Lines changed: 1 addition & 1 deletion
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
@@ -6,7 +6,7 @@ resolver = "2"
66
version = "0.0.0-dev"
77
authors = ["Stackable GmbH <info@stackable.tech>"]
88
license = "OSL-3.0"
9-
edition = "2021"
9+
edition = "2024"
1010
repository = "https://github.com/stackabletech/hive-operator"
1111

1212
[workspace.dependencies]

rust/operator-binary/src/command.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ pub fn build_container_command_args(
4646
]);
4747
}
4848

49-
if let Some(s3) = s3_connection_spec {
50-
if let Some(ca_cert_file) = s3.tls.tls_ca_cert_mount_path() {
51-
args.push(format!(
49+
if let Some(s3) = s3_connection_spec
50+
&& let Some(ca_cert_file) = s3.tls.tls_ca_cert_mount_path()
51+
{
52+
args.push(format!(
5253
"cert-tools generate-pkcs12-truststore --pkcs12 {STACKABLE_TRUST_STORE}:{STACKABLE_TRUST_STORE_PASSWORD} --pem {ca_cert_file} --out {STACKABLE_TRUST_STORE} --out-password {STACKABLE_TRUST_STORE_PASSWORD}"
5354
));
54-
}
5555
}
5656

57-
if let Some(opa) = hive_opa_config {
58-
if let Some(ca_cert_dir) = opa.tls_ca_cert_mount_path() {
59-
args.push(format!(
57+
if let Some(opa) = hive_opa_config
58+
&& let Some(ca_cert_dir) = opa.tls_ca_cert_mount_path()
59+
{
60+
args.push(format!(
6061
"cert-tools generate-pkcs12-truststore --pkcs12 {STACKABLE_TRUST_STORE}:{STACKABLE_TRUST_STORE_PASSWORD} --pem {ca_cert_dir}/ca.crt --out {STACKABLE_TRUST_STORE} --out-password {STACKABLE_TRUST_STORE_PASSWORD}"
6162
));
62-
}
6363
}
6464

6565
// metastore start command

rust/operator-binary/src/controller.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -777,12 +777,12 @@ fn build_metastore_rolegroup_statefulset(
777777

778778
// TODO: refactor this when CRD versioning is in place
779779
// Warn if the capacity field has been set to anything other than 0Mi
780-
if let Some(Quantity(capacity)) = merged_config.resources.storage.data.capacity.as_ref() {
781-
if capacity != &"0Mi".to_string() {
782-
tracing::warn!(
783-
"The 'storage' CRD property is set to [{capacity}]. This field is not used and will be removed in a future release."
784-
);
785-
}
780+
if let Some(Quantity(capacity)) = merged_config.resources.storage.data.capacity.as_ref()
781+
&& capacity != &"0Mi".to_string()
782+
{
783+
tracing::warn!(
784+
"The 'storage' CRD property is set to [{capacity}]. This field is not used and will be removed in a future release."
785+
);
786786
}
787787

788788
let recommended_object_labels = build_recommended_labels(

rust/operator-binary/src/webhooks/conversion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub async fn create_webhook_server(
3737
field_manager: FIELD_MANAGER.to_owned(),
3838
};
3939

40-
let (conversion_webhook, _initial_reconcile_rx) =
40+
let (conversion_webhook, _) =
4141
ConversionWebhook::new(crds_and_handlers, client, conversion_webhook_options);
4242

4343
let webhook_server_options = WebhookServerOptions {

0 commit comments

Comments
 (0)