Skip to content

Commit

Permalink
skip image target require when not set
Browse files Browse the repository at this point in the history
  • Loading branch information
elchead committed Dec 27, 2023
1 parent 166d4d5 commit a6cd544
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/internal/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ func testMicroservicesEventuallyHaveVersion(t *testing.T, wantMicroserviceVersio
}

func testNodesEventuallyHaveVersion(t *testing.T, k *kubernetes.Clientset, targetVersions VersionContainer, totalNodeCount int, timeout time.Duration) {
if targetVersions.ImageRef == "" {
return
}
require.Eventually(t, func() bool {
nodes, err := k.CoreV1().Nodes().List(context.Background(), metaV1.ListOptions{})
if err != nil {
Expand Down

0 comments on commit a6cd544

Please sign in to comment.