Skip to content

Commit

Permalink
Add new status to PN CRD (#2535)
Browse files Browse the repository at this point in the history
* 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 <miguelgo@microsoft.com>
  • Loading branch information
aggarwal0009 and miguelgoms authored Jan 25, 2024
1 parent 1fc2ba0 commit 8acc551
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crd/multitenancy/api/v1alpha1/podnetwork.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ spec:
- Ready
- InUse
- SubnetNotDelegated
- SubnetDelegatedToDifferentService
type: string
type: object
type: object
Expand Down

0 comments on commit 8acc551

Please sign in to comment.