Skip to content

Commit d9f6e72

Browse files
committed
Update to new CLI args
1 parent 577f731 commit d9f6e72

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

_WORK/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
```bash
55
stackablectl op in commons listener secret trino
6-
kind load docker-image oci.stackable.tech/sdp/trino:476-stackable0.0.0-dev-with-merger
6+
# kind load docker-image oci.stackable.tech/sdp/trino:476-stackable0.0.0-dev-with-merger
77
kubectl apply -f _WORK/trino.yaml
88
```
99

_WORK/trino.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ metadata:
55
spec:
66
image:
77
productVersion: "476"
8-
custom: oci.stackable.tech/sdp/trino:476-stackable0.0.0-dev-with-merger
9-
pullPolicy: Never
8+
# custom: oci.stackable.tech/sdp/trino:476-stackable0.0.0-dev-with-merger
9+
# pullPolicy: Never
1010
clusterConfig:
1111
tls:
1212
serverSecretClass: short-tls

rust/operator-binary/src/command.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn container_prepare_args(
4444

4545
// Create truststore that will be used when talking to external tools like S3
4646
// It will be populated from the system truststore so that connections against public services like AWS S3 are still possible
47-
args.push(format!("truststore-merger --pem /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem --out {STACKABLE_CLIENT_TLS_DIR}/truststore.p12 --out-password {STACKABLE_TLS_STORE_PASSWORD}"));
47+
args.push(format!("cert-tools generate-pkcs12-truststore --pem /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem --out {STACKABLE_CLIENT_TLS_DIR}/truststore.p12 --out-password {STACKABLE_TLS_STORE_PASSWORD}"));
4848

4949
if trino.tls_enabled() {
5050
args.push(format!("cp {STACKABLE_MOUNT_SERVER_TLS_DIR}/truststore.p12 {STACKABLE_SERVER_TLS_DIR}/truststore.p12"));
@@ -55,7 +55,7 @@ pub fn container_prepare_args(
5555
args.push(format!("cp {STACKABLE_MOUNT_INTERNAL_TLS_DIR}/truststore.p12 {STACKABLE_INTERNAL_TLS_DIR}/truststore.p12"));
5656
args.push(format!("cp {STACKABLE_MOUNT_INTERNAL_TLS_DIR}/keystore.p12 {STACKABLE_INTERNAL_TLS_DIR}/keystore.p12"));
5757
if trino.tls_enabled() {
58-
args.push(format!("truststore-merger --pkcs12 {STACKABLE_MOUNT_SERVER_TLS_DIR}/truststore.p12:{STACKABLE_TLS_STORE_PASSWORD} --pkcs12 {STACKABLE_INTERNAL_TLS_DIR}/truststore.p12:{STACKABLE_TLS_STORE_PASSWORD} --out {STACKABLE_INTERNAL_TLS_DIR}/truststore.p12 --out-password {STACKABLE_TLS_STORE_PASSWORD}"));
58+
args.push(format!("cert-tools generate-pkcs12-truststore --pkcs12 {STACKABLE_MOUNT_SERVER_TLS_DIR}/truststore.p12:{STACKABLE_TLS_STORE_PASSWORD} --pkcs12 {STACKABLE_INTERNAL_TLS_DIR}/truststore.p12:{STACKABLE_TLS_STORE_PASSWORD} --out {STACKABLE_INTERNAL_TLS_DIR}/truststore.p12 --out-password {STACKABLE_TLS_STORE_PASSWORD}"));
5959
}
6060
}
6161

@@ -137,6 +137,6 @@ wait_for_termination $!
137137
pub fn add_cert_to_truststore(cert_file: &str, destination_directory: &str) -> Vec<String> {
138138
let truststore = format!("{destination_directory}/truststore.p12");
139139
vec![format!(
140-
"truststore-merger --pkcs12 {truststore}:{STACKABLE_TLS_STORE_PASSWORD} --pem {cert_file} --out {truststore} --out-password {STACKABLE_TLS_STORE_PASSWORD}"
140+
"cert-tools generate-pkcs12-truststore --pkcs12 {truststore}:{STACKABLE_TLS_STORE_PASSWORD} --pem {cert_file} --out {truststore} --out-password {STACKABLE_TLS_STORE_PASSWORD}"
141141
)]
142142
}

0 commit comments

Comments
 (0)