Skip to content

Commit

Permalink
Update pkg/util/kube/utils.go
Browse files Browse the repository at this point in the history
Signed-off-by: Tiger Kaovilai <[email protected]>
Signed-off-by: Tiger Kaovilai <[email protected]>
  • Loading branch information
kaovilai committed Feb 14, 2024
1 parent 18bb3a0 commit 7177214
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/util/kube/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ func NamespaceAndName(objMeta metav1.Object) string {
// namespace already exists and is not ready, this function will return (false, false, nil).
// If the namespace exists and is marked for deletion, this function will wait up to the timeout for it to fully delete.
func EnsureNamespaceExistsAndIsReady(namespace *corev1api.Namespace, client corev1client.NamespaceInterface, timeout time.Duration) (ready bool, nsCreated bool, err error) {
// nsCreated tells whether the namespace was created by this method
// required for keeping track of number of restored items
// if namespace is marked for deletion, and we timed out, report an error
var terminatingNamespace bool
err = wait.PollImmediate(time.Second, timeout, func() (bool, error) {
Expand Down

0 comments on commit 7177214

Please sign in to comment.