Skip to content

Commit

Permalink
Fix error copying secrets between clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Glass committed Jul 31, 2023
1 parent 2a9ffe6 commit 904bdb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions acceptance/framework/k8s/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func CopySecret(t *testing.T, sourceContext, destContext environment.TestContext
secret.ResourceVersion = ""
require.NoError(r, err)
})
secret.Namespace = destContext.KubectlOptions(t).Namespace
_, err = destContext.KubernetesClient(t).CoreV1().Secrets(destContext.KubectlOptions(t).Namespace).Create(context.Background(), secret, metav1.CreateOptions{})
require.NoError(t, err)
}

0 comments on commit 904bdb6

Please sign in to comment.