Skip to content

Commit 423a320

Browse files
Revert MTPNC deletion timestamp check
1 parent 371b8ab commit 423a320

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cns/middlewares/k8sSwiftV2.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ 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-
errDeleteTimestampSet = errors.New("MTPNC deletion timestamp is set")
3231
)
3332

3433
type K8sSWIFTv2Middleware struct {
@@ -194,9 +193,6 @@ func (k *K8sSWIFTv2Middleware) getMTPNC(ctx context.Context, podInfo cns.PodInfo
194193
if err := k.Cli.Get(ctx, mtpncNamespacedName, &mtpnc); err != nil {
195194
return v1alpha1.MultitenantPodNetworkConfig{}, types.UnexpectedError, errors.Wrap(err, errGetMTPNC.Error()).Error()
196195
}
197-
if mtpnc.DeletionTimestamp != nil {
198-
return v1alpha1.MultitenantPodNetworkConfig{}, types.UnexpectedError, errDeleteTimestampSet.Error()
199-
}
200196
// Check if the MTPNC CRD is ready. If one of the fields is empty, return error
201197
if !mtpnc.IsReady() {
202198
return v1alpha1.MultitenantPodNetworkConfig{}, types.UnexpectedError, errMTPNCNotReady.Error()

0 commit comments

Comments
 (0)