ignore NotFound error
Signed-off-by: Rohan Sharma <rhnsharma5113@gmail.com>
This commit is contained in:
parent
11efaf80ea
commit
1abca3f94a
|
@ -77,6 +77,9 @@ var _ = ginkgo.Describe("[namespace auto-provision] namespace auto-provision tes
|
||||||
err := wait.PollImmediate(pollInterval, pollTimeout, func() (done bool, err error) {
|
err := wait.PollImmediate(pollInterval, pollTimeout, func() (done bool, err error) {
|
||||||
_, err = clusterClient.CoreV1().Namespaces().Get(context.TODO(), namespaceName, metav1.GetOptions{})
|
_, err = clusterClient.CoreV1().Namespaces().Get(context.TODO(), namespaceName, metav1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if errors.IsNotFound(err) {
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
return true, nil
|
return true, nil
|
||||||
|
|
Loading…
Reference in New Issue