From 1ee33978db7e174b78b27ec80232596b7a83654f Mon Sep 17 00:00:00 2001 From: Ozzy Osborne Date: Tue, 22 Feb 2022 09:39:43 -0500 Subject: [PATCH] Add default value for CustomPlatform --- extender/kaniko/dockerfile_applier.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extender/kaniko/dockerfile_applier.go b/extender/kaniko/dockerfile_applier.go index c5b0222eb..cce978bff 100644 --- a/extender/kaniko/dockerfile_applier.go +++ b/extender/kaniko/dockerfile_applier.go @@ -6,6 +6,7 @@ import ( "github.com/GoogleContainerTools/kaniko/pkg/config" "github.com/GoogleContainerTools/kaniko/pkg/executor" + "github.com/containerd/containerd/platforms" "github.com/buildpacks/lifecycle/extender" ) @@ -46,6 +47,7 @@ func (a *DockerfileApplier) ApplyBuild(dockerfiles []extender.Dockerfile, baseIm RegistryOptions: config.RegistryOptions{SkipTLSVerify: true}, // TODO: remove eventually SnapshotMode: "full", SrcContext: a.workDir, + CustomPlatform: platforms.DefaultString(), } if err := doKaniko(dockerfile.Path, opts, logger); err != nil { @@ -75,6 +77,7 @@ func (a *DockerfileApplier) ApplyRun(dockerfiles []extender.Dockerfile, baseImag RegistryOptions: config.RegistryOptions{SkipTLSVerify: true}, // TODO: remove eventually SnapshotMode: "full", SrcContext: a.workDir, + CustomPlatform: platforms.DefaultString(), } if err := doKaniko(dockerfile.Path, opts, logger); err != nil {