Skip to content

Commit b60a9d1

Browse files
Adding documentation for the status
1 parent 2059816 commit b60a9d1

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,25 @@ const (
6565
)
6666

6767
// MTPNCStatus indicates the high-level status of MultitenantPodNetworkConfig
68-
// +kubebuilder:validation:Enum=Ready;Pending;InternalError;PNINotFound;PNINotReady;NodeCapacityExceeded;IPsExhausted
68+
// +kubebuilder:validation:Enum=Ready;Pending;InternalError;PNINotFound;PNINotReady;NodeCapacityExceeded;IPsExhausted;Deleting
6969
type MTPNCStatus string
7070

7171
const (
72+
// MTPNCStatusReady indicates the MTPNC has been successfully programmed and is ready for use
7273
MTPNCStatusReady MTPNCStatus = "Ready"
74+
// MTPNCStatusPending indicates the MTPNC is awaiting processing
7375
MTPNCStatusPending MTPNCStatus = "Pending"
76+
// MTPNCStatusInternalError indicates an internal error occurred while processing the MTPNC
7477
MTPNCStatusInternalError MTPNCStatus = "InternalError"
78+
// MTPNCStatusPNINotFound indicates the referenced PodNetworkInstance was not found
7579
MTPNCStatusPNINotFound MTPNCStatus = "PNINotFound"
80+
// MTPNCStatusPNINotReady indicates the referenced PodNetworkInstance is not yet ready
7681
MTPNCStatusPNINotReady MTPNCStatus = "PNINotReady"
82+
// MTPNCStatusNodeCapacityExceeded indicates the node has exceeded its capacity for network resources
7783
MTPNCStatusNodeCapacityExceeded MTPNCStatus = "NodeCapacityExceeded"
84+
// MTPNCStatusIPsExhausted indicates no IP addresses are available for allocation
7885
MTPNCStatusIPsExhausted MTPNCStatus = "IPsExhausted"
86+
// MTPNCStatusDeleting indicates MTPNC is being deleted. DNC-RC sets this status during the finalizer removal process
7987
MTPNCStatusDeleting MTPNCStatus = "Deleting"
8088
)
8189

crd/multitenancy/api/v1alpha1/podnetworkinstance.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
// +kubebuilder:metadata:labels=managed=
1818
// +kubebuilder:metadata:labels=owner=
1919
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.status`
20-
// +kubebuilder:printcolumn:name="PodNetworks",priority=1,type=string,JSONPath=`.spec.podNetworkConfigs[*].podNetwork`
2120
type PodNetworkInstance struct {
2221
metav1.TypeMeta `json:",inline"`
2322
metav1.ObjectMeta `json:"metadata,omitempty"`

crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ spec:
157157
- PNINotReady
158158
- NodeCapacityExceeded
159159
- IPsExhausted
160+
- Deleting
160161
type: string
161162
type: object
162163
type: object

crd/multitenancy/manifests/multitenancy.acn.azure.com_podnetworkinstances.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ spec:
2323
- jsonPath: .status.status
2424
name: Status
2525
type: string
26-
- jsonPath: .spec.podNetworkConfigs[*].podNetwork
27-
name: PodNetworks
28-
priority: 1
29-
type: string
3026
name: v1alpha1
3127
schema:
3228
openAPIV3Schema:

0 commit comments

Comments
 (0)