diff --git a/pkg/skaffold/build/cluster/pod_test.go b/pkg/skaffold/build/cluster/pod_test.go index 70d16d410f0..9539614324d 100644 --- a/pkg/skaffold/build/cluster/pod_test.go +++ b/pkg/skaffold/build/cluster/pod_test.go @@ -181,9 +181,10 @@ func TestKanikoArgs(t *testing.T) { func TestKanikoPodSpec(t *testing.T) { artifact := &latest.KanikoArtifact{ - Image: "image", - DockerfilePath: "Dockerfile", - InitImage: "init/image", + Image: "image", + DockerfilePath: "Dockerfile", + InitImage: "init/image", + ImagePullSecret: "image-pull-secret", Destination: []string{ "gcr.io/foo/bar:test-1", "gcr.io/foo/bar:test-2", @@ -353,6 +354,9 @@ func TestKanikoPodSpec(t *testing.T) { }, }, }}, + ImagePullSecrets: []v1.LocalObjectReference{{ + Name: "image-pull-secret", + }}, ServiceAccountName: "aVerySpecialSA", SecurityContext: &v1.PodSecurityContext{ RunAsUser: &runAsUser,