Skip to content

Commit 87b1677

Browse files
committed
update mtpnc status only
1 parent b063935 commit 87b1677

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ const (
6666
type MTPNCStatus string
6767

6868
const (
69-
MTPNCStatusReady MTPNCStatus = "Ready"
70-
MTPNCStatusPending MTPNCStatus = "Pending"
71-
MTPNCStatusInternalError MTPNCStatus = "InternalError"
72-
MTPNCStatusNodeCapacityExceeded MTPNCStatus = "NodeCapacityExceeded"
73-
MTPNCStatusSubnetExhaustionError MTPNCStatus = "SubnetExhaustionError"
74-
MTPNCStatusNodeLinkedToAnotherMTPNC MTPNCStatus = "NodeLinkedToAnotherMTPNC"
69+
MTPNCStatusReady MTPNCStatus = "Ready"
70+
MTPNCStatusPending MTPNCStatus = "Pending"
71+
MTPNCStatusInternalError MTPNCStatus = "InternalError"
72+
MTPNCStatusNodeCapacityExceeded MTPNCStatus = "NodeCapacityExceeded"
73+
MTPNCStatusSubnetExhaustionError MTPNCStatus = "SubnetExhaustionError"
74+
MTPNCStatusNodeLinkedToAnotherMTPNC MTPNCStatus = "NodeLinkedToAnotherMTPNC"
7575
)
7676

7777
type InterfaceInfo struct {
@@ -121,10 +121,6 @@ type MultitenantPodNetworkConfigStatus struct {
121121
// Status represents the overall status of the MTPNC
122122
// +kubebuilder:validation:Optional
123123
Status MTPNCStatus `json:"status,omitempty"`
124-
// LastTransitionTime is the time when this error status last changed.
125-
// If the current reconcile results in same MTPNCStatus, LastTransitionTime remains unchanged.
126-
// +kubebuilder:validation:Optional
127-
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
128124
}
129125

130126
func init() {

0 commit comments

Comments
 (0)