Skip to content

Commit

Permalink
CARRY: Use environment variable to skip jobset availability check
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripetrlik authored and sutaakar committed Oct 9, 2024
1 parent 6f56781 commit ae5f7b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/util/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,11 @@ func WaitForKueueAvailability(ctx context.Context, k8sClient client.Client) {
}

func WaitForJobSetAvailability(ctx context.Context, k8sClient client.Client) {
kcmKey := types.NamespacedName{Namespace: "jobset-system", Name: "jobset-controller-manager"}
waitForOperatorAvailability(ctx, k8sClient, kcmKey)
_, skipJobsetAvailabilityCheck := os.LookupEnv("SKIP_JOB_SET_AVAILABILITY_CHECK")
if !skipJobsetAvailabilityCheck {
kcmKey := types.NamespacedName{Namespace: "jobset-system", Name: "jobset-controller-manager"}
waitForOperatorAvailability(ctx, k8sClient, kcmKey)
}
}

func GetNamespace() string {
Expand Down

0 comments on commit ae5f7b2

Please sign in to comment.