File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
crd/multitenancy/api/v1alpha1 Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2828 errGetMTPNC = errors .New (NetworkNotReadyErrorMsg + " - failed to get MTPNC" )
2929 errInvalidSWIFTv2NICType = errors .New ("invalid NIC type for SWIFT v2 scenario" )
3030 errInvalidMTPNCPrefixLength = errors .New ("invalid prefix length for MTPNC primaryIP, must be 32" )
31- errMTPNCDeleting = errors .New (NetworkNotReadyErrorMsg + "found mtpnc for previous pod pending deletion , waiting for new mtpnc to be ready" )
31+ errMTPNCDeleting = errors .New (NetworkNotReadyErrorMsg + " - mtpnc for previous pod is being deleted , waiting for new mtpnc to be ready" )
3232)
3333
3434type K8sSWIFTv2Middleware struct {
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ func (m *MultitenantPodNetworkConfig) IsReady() bool {
1010 return ! reflect .DeepEqual (m .Status , MultitenantPodNetworkConfigStatus {})
1111}
1212
13+ // IsDeleting returns true if the MultitenantPodNetworkConfig resource has been marked for deletion.
14+ // A resource is considered to be deleting when its DeletionTimestamp field is set.
1315func (m * MultitenantPodNetworkConfig ) IsDeleting () bool {
1416 return ! m .DeletionTimestamp .IsZero ()
1517}
You can’t perform that action at this time.
0 commit comments