Skip to content

Commit 371b8ab

Browse files
Adding status and removing deprecated fields from output
1 parent 2133bc0 commit 371b8ab

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ import (
1717
// +kubebuilder:metadata:labels=managed=
1818
// +kubebuilder:metadata:labels=owner=
1919
// +kubebuilder:printcolumn:name="PodNetworkInstance",type=string,JSONPath=`.spec.podNetworkInstance`
20-
// +kubebuilder:printcolumn:name="PodNetwork",type=string,JSONPath=`.spec.podNetwork`
2120
// +kubebuilder:printcolumn:name="PodName",type=string,JSONPath=`.spec.podName`
21+
// +kubebuilder:printcolumn:name="PodUID",type=string,JSONPath=`.spec.podUID`
22+
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.status`
2223
type MultitenantPodNetworkConfig struct {
2324
metav1.TypeMeta `json:",inline"`
2425
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -75,6 +76,7 @@ const (
7576
MTPNCStatusPNINotReady MTPNCStatus = "PNINotReady"
7677
MTPNCStatusNodeCapacityExceeded MTPNCStatus = "NodeCapacityExceeded"
7778
MTPNCStatusIPsExhausted MTPNCStatus = "IPsExhausted"
79+
MTPNCStatusDeleting MTPNCStatus = "Deleting"
7880
)
7981

8082
type InterfaceInfo struct {

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ spec:
2323
- jsonPath: .spec.podNetworkInstance
2424
name: PodNetworkInstance
2525
type: string
26-
- jsonPath: .spec.podNetwork
27-
name: PodNetwork
28-
type: string
2926
- jsonPath: .spec.podName
3027
name: PodName
3128
type: string
29+
- jsonPath: .spec.podUID
30+
name: PodUID
31+
type: string
32+
- jsonPath: .status.status
33+
name: Status
34+
type: string
3235
name: v1alpha1
3336
schema:
3437
openAPIV3Schema:

0 commit comments

Comments
 (0)