Skip to content

Commit

Permalink
cnf-network: changed func isNMStateDeployedAndReady (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenLevin authored Sep 23, 2024
1 parent 299957d commit 98a5950
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/cnf/core/network/internal/netnmstate/netnmstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ func isNMStateDeployedAndReady(timeout time.Duration) error {
var (
nmstateHandlerDs *daemonset.Builder
nmstateWebhookDeployment *deployment.Builder
nmstateCertDeployment *deployment.Builder
err error
)

Expand All @@ -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
})

Expand All @@ -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
}

0 comments on commit 98a5950

Please sign in to comment.