Skip to content

Commit

Permalink
Add WERF_DISABLE_RESOURCES_WAITER=1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
distorhead committed Mar 3, 2021
1 parent 8a20831 commit e44c50c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/deploy/helm/resources_waiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package helm
import (
"context"
"fmt"
"os"
"regexp"
"strconv"
"strings"
Expand Down Expand Up @@ -54,6 +55,10 @@ func extractSpecReplicas(specReplicas *int32) int {
}

func (waiter *ResourcesWaiter) Wait(ctx context.Context, namespace string, resources helm_kube.ResourceList, timeout time.Duration) error {
if os.Getenv("WERF_DISABLE_RESOURCES_WAITER") == "1" {
return nil
}

if waiter.KubeInitializer != nil {
if err := waiter.KubeInitializer.Init(ctx); err != nil {
return fmt.Errorf("kube initializer failed: %s", err)
Expand Down

0 comments on commit e44c50c

Please sign in to comment.