Skip to content

Commit 9e360aa

Browse files
committed
Rename all -> public-private
1 parent b25dd59 commit 9e360aa

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

crates/stackable-operator/src/builder/pod/volume.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ pub enum SecretOperatorVolumeProvisionParts {
444444
/// Provision all parts, which includes all [`Public`](SecretOperatorVolumeProvisionParts::Public)
445445
/// ones as well as additional private parts, such as a TLS cert + private key, a keystore or a
446446
/// keytab.
447-
All,
447+
PublicPrivate,
448448
}
449449

450450
/// Reference to a listener class or listener name

crates/stackable-operator/src/commons/secret_class.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ mod tests {
118118
}),
119119
}
120120
// Let's assume we need some form of private data (e.g. a certificate or S3 credentials)
121-
.to_ephemeral_volume_source(SecretOperatorVolumeProvisionParts::All)
121+
.to_ephemeral_volume_source(SecretOperatorVolumeProvisionParts::PublicPrivate)
122122
.unwrap();
123123

124124
let expected_volume_attributes = BTreeMap::from([
@@ -132,7 +132,7 @@ mod tests {
132132
),
133133
(
134134
"secrets.stackable.tech/provision-parts".to_string(),
135-
"all".to_string(),
135+
"public-private".to_string(),
136136
),
137137
]);
138138

crates/stackable-operator/src/crd/authentication/ldap/v1alpha1_impl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl AuthenticationProvider {
9999
let volume_name = format!("{secret_class}-bind-credentials");
100100
let volume = bind_credentials
101101
// We need the private LDAP bind credentials
102-
.to_volume(&volume_name, SecretOperatorVolumeProvisionParts::All)
102+
.to_volume(&volume_name, SecretOperatorVolumeProvisionParts::PublicPrivate)
103103
.context(BindCredentialsSnafu)?;
104104

105105
volumes.push(volume);
@@ -273,7 +273,7 @@ mod tests {
273273
}
274274
.to_volume(
275275
"openldap-bind-credentials-bind-credentials",
276-
SecretOperatorVolumeProvisionParts::All
276+
SecretOperatorVolumeProvisionParts::PublicPrivate
277277
)
278278
.unwrap(),
279279
SecretClassVolume {

crates/stackable-operator/src/crd/s3/connection/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ mod tests {
181181
),
182182
(
183183
"secrets.stackable.tech/provision-parts".to_string(),
184-
"all".to_string()
184+
"public-private".to_string()
185185
)
186186
]),
187187
);

crates/stackable-operator/src/crd/s3/connection/v1alpha1_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl ConnectionSpec {
115115
volumes.push(
116116
credentials
117117
// We need the private S3 credentials
118-
.to_volume(&volume_name, SecretOperatorVolumeProvisionParts::All)
118+
.to_volume(&volume_name, SecretOperatorVolumeProvisionParts::PublicPrivate)
119119
.context(AddS3CredentialVolumesSnafu)?,
120120
);
121121
mounts.push(

0 commit comments

Comments
 (0)