Skip to content

Commit 3bc0563

Browse files
committed
Add SecretClass and TrustStore to conversion webhook
1 parent fae2648 commit 3bc0563

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,24 @@ use stackable_operator::{
1010
},
1111
};
1212

13-
use crate::OPERATOR_NAME;
13+
use crate::{
14+
OPERATOR_NAME,
15+
crd::{SecretClass, SecretClassVersion, TrustStore, TrustStoreVersion},
16+
};
1417

1518
pub async fn conversion_webhook(
1619
client: Client,
1720
operator_environment: OperatorEnvironmentOptions,
1821
) -> anyhow::Result<ConversionWebhookServer> {
1922
let crds_and_handlers = [
20-
// (
21-
// SecretClass::merged_crd(SecretClassVersion::V1Alpha1)?,
22-
// SecretClass::try_convert as fn(_) -> _,
23-
// ),
23+
(
24+
SecretClass::merged_crd(SecretClassVersion::V1Alpha1)?,
25+
SecretClass::try_convert as fn(_) -> _,
26+
),
27+
(
28+
TrustStore::merged_crd(TrustStoreVersion::V1Alpha1)?,
29+
TrustStore::try_convert as fn(_) -> _,
30+
),
2431
(
2532
Person::merged_crd(PersonVersion::V1Alpha1)?,
2633
Person::try_convert as fn(_) -> _,

0 commit comments

Comments
 (0)