Skip to content

Commit 232bca3

Browse files
Fixing error message and adding comments
1 parent 1fd081f commit 232bca3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cns/middlewares/k8sSwiftV2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var (
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

3434
type K8sSWIFTv2Middleware struct {

crd/multitenancy/api/v1alpha1/utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
1315
func (m *MultitenantPodNetworkConfig) IsDeleting() bool {
1416
return !m.DeletionTimestamp.IsZero()
1517
}

0 commit comments

Comments
 (0)