From 17b4985ffdfe8ef10da603d7e404614577a899ba Mon Sep 17 00:00:00 2001 From: evgenLevin Date: Mon, 23 Sep 2024 13:20:25 -0400 Subject: [PATCH] cnf-network: changed func isNMStateDeployedAndReady --- .../core/network/internal/netnmstate/netnmstate.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/cnf/core/network/internal/netnmstate/netnmstate.go b/tests/cnf/core/network/internal/netnmstate/netnmstate.go index 23ce7fab4..a6a33de24 100644 --- a/tests/cnf/core/network/internal/netnmstate/netnmstate.go +++ b/tests/cnf/core/network/internal/netnmstate/netnmstate.go @@ -457,7 +457,6 @@ func isNMStateDeployedAndReady(timeout time.Duration) error { var ( nmstateHandlerDs *daemonset.Builder nmstateWebhookDeployment *deployment.Builder - nmstateCertDeployment *deployment.Builder err error ) @@ -483,15 +482,6 @@ func isNMStateDeployedAndReady(timeout time.Duration) error { return false, nil } - nmstateCertDeployment, err = deployment.Pull( - APIClient, netparam.NMStateCertDeploymentName, NetConfig.NMStateOperatorNamespace) - if err != nil { - glog.V(90).Infof("Error to pull deployment %s namespace %s, retry", - netparam.NMStateCertDeploymentName, NetConfig.NMStateOperatorNamespace) - - return false, nil - } - return true, nil }) @@ -512,9 +502,5 @@ func isNMStateDeployedAndReady(timeout time.Duration) error { return fmt.Errorf("nmstate webhook deployment is not ready") } - if !nmstateCertDeployment.IsReady(timeout) { - return fmt.Errorf("nmstate cert-manager deployment is not ready") - } - return nil }