Skip to content

Commit 0a4e180

Browse files
committed
fix: Deploy PodListener CRD and handle conversions
This CRD was previously missed in the conversion webhook and thus wasn't deployed by the operator.
1 parent 0693101 commit 0a4e180

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use snafu::{ResultExt, Snafu};
22
use stackable_operator::{
33
cli::OperatorEnvironmentOptions,
4-
crd::listener::{Listener, ListenerClass, ListenerClassVersion, ListenerVersion},
4+
crd::listener::{
5+
Listener, ListenerClass, ListenerClassVersion, ListenerVersion, PodListeners,
6+
PodListenersVersion,
7+
},
58
kube::{Client, core::crd::MergeError},
69
webhook::{
710
WebhookServer, WebhookServerError, WebhookServerOptions,
@@ -34,6 +37,10 @@ pub async fn create_webhook_server(
3437
ListenerClass::merged_crd(ListenerClassVersion::V1Alpha1).context(MergeCrdSnafu)?,
3538
ListenerClass::try_convert as fn(_) -> _,
3639
),
40+
(
41+
PodListeners::merged_crd(PodListenersVersion::V1Alpha1).context(MergeCrdSnafu)?,
42+
PodListeners::try_convert as fn(_) -> _,
43+
),
3744
(
3845
Listener::merged_crd(ListenerVersion::V1Alpha1).context(MergeCrdSnafu)?,
3946
Listener::try_convert as fn(_) -> _,

0 commit comments

Comments
 (0)