diff --git a/pkg/tests/pull/pull_test.go b/pkg/tests/pull/pull_test.go index 8082d9a239..f83e70c980 100644 --- a/pkg/tests/pull/pull_test.go +++ b/pkg/tests/pull/pull_test.go @@ -174,6 +174,14 @@ func TestKotsPull(t *testing.T) { require.NoError(t, err, wantPath) } + if strings.HasSuffix(wantPath, "pullsecrets.yaml") { + // pull secret patches are not generated in a deterministic order + gotPullSecrets := strings.Split(contentsString, "---\n") + wantPullSecrets := strings.Split(wantContentsString, "---\n") + require.ElementsMatch(t, wantPullSecrets, gotPullSecrets) + return nil + } + assert.Equal(t, wantContentsString, contentsString, wantPath) return nil })