From 278031b70be4dd1d073619d12efcca2bcc7d8ce9 Mon Sep 17 00:00:00 2001 From: aggarwal0009 <127549148+aggarwal0009@users.noreply.github.com> Date: Thu, 25 Jan 2024 12:16:15 -0800 Subject: [PATCH] Add new status to PN CRD (#2535) * Add new status to PN crd * Update PN CRD status * Update PN CRD staus * updating generated manifest for MT podnetwork --------- Co-authored-by: Miguel Gonzalez --- crd/multitenancy/api/v1alpha1/podnetwork.go | 9 +++++---- .../multitenancy.acn.azure.com_podnetworks.yaml | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/crd/multitenancy/api/v1alpha1/podnetwork.go b/crd/multitenancy/api/v1alpha1/podnetwork.go index a426a16bd0e..8bb87d0f988 100644 --- a/crd/multitenancy/api/v1alpha1/podnetwork.go +++ b/crd/multitenancy/api/v1alpha1/podnetwork.go @@ -48,13 +48,14 @@ type PodNetworkSpec struct { } // Status indicates the status of PN -// +kubebuilder:validation:Enum=Ready;InUse;SubnetNotDelegated +// +kubebuilder:validation:Enum=Ready;InUse;SubnetNotDelegated;SubnetDelegatedToDifferentService type Status string const ( - Ready Status = "Ready" - InUse Status = "InUse" - SubnetNotDelegated Status = "SubnetNotDelegated" + Ready Status = "Ready" + InUse Status = "InUse" + SubnetNotDelegated Status = "SubnetNotDelegated" + SubnetDelegatedToDifferentService Status = "SubnetDelegatedToDifferentService" ) // PodNetworkStatus defines the observed state of PodNetwork diff --git a/crd/multitenancy/manifests/multitenancy.acn.azure.com_podnetworks.yaml b/crd/multitenancy/manifests/multitenancy.acn.azure.com_podnetworks.yaml index 5c213cecd02..cb73f5b94ac 100644 --- a/crd/multitenancy/manifests/multitenancy.acn.azure.com_podnetworks.yaml +++ b/crd/multitenancy/manifests/multitenancy.acn.azure.com_podnetworks.yaml @@ -80,6 +80,7 @@ spec: - Ready - InUse - SubnetNotDelegated + - SubnetDelegatedToDifferentService type: string type: object type: object