From e06e34655aca66340fd31be22f358e5b654f7437 Mon Sep 17 00:00:00 2001 From: John Rowley Date: Sat, 22 Dec 2018 23:39:03 -0800 Subject: [PATCH] added poc way of dealing with docker auth issues --- pkg/skaffold/build/kaniko/sources/sources.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkg/skaffold/build/kaniko/sources/sources.go b/pkg/skaffold/build/kaniko/sources/sources.go index 958607a08da..1993ffc2b7f 100644 --- a/pkg/skaffold/build/kaniko/sources/sources.go +++ b/pkg/skaffold/build/kaniko/sources/sources.go @@ -70,6 +70,10 @@ func podTemplate(cfg *latest.KanikoBuild, args []string) *v1.Pod { Name: constants.DefaultKanikoSecretName, MountPath: "/secret", }, + { + Name: "regcred", + MountPath: "/root/", + }, }, }, }, @@ -81,6 +85,19 @@ func podTemplate(cfg *latest.KanikoBuild, args []string) *v1.Pod { SecretName: cfg.PullSecretName, }, }, + }, { + Name: "regcred", + VolumeSource: v1.VolumeSource{ + Secret: &v1.SecretVolumeSource{ + SecretName: cfg.PullSecretName, + Items: []v1.KeyToPath{ + { + Key: constants.DefaultKanikoSecretName, + Path: ".docker/config.json", + }, + }, + }, + }, }}, }, }