From d93cf5770792fbd50e9f2aeed375bb172b7d984b Mon Sep 17 00:00:00 2001 From: Sascha Schwarze Date: Fri, 9 Oct 2020 14:29:11 +0200 Subject: [PATCH] Bring Kaniko version and arguments in sync --- pkg/controller/buildrun/runtime_image.go | 1 + .../source-to-image/buildstrategy_source-to-image_cr.yaml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/controller/buildrun/runtime_image.go b/pkg/controller/buildrun/runtime_image.go index 97183eefe7..91db05671a 100644 --- a/pkg/controller/buildrun/runtime_image.go +++ b/pkg/controller/buildrun/runtime_image.go @@ -216,6 +216,7 @@ func runtimeBuildAndPushStep(b *buildv1alpha1.Build, kanikoImage string) *v1beta fmt.Sprintf("--context=%x", path.Join(workspaceDir, contextDir)), fmt.Sprintf("--destination=%s", b.Spec.Output.ImageURL), "--snapshotMode=redo", + "--oci-layout-path=/workspace/output/image", }, } return &v1beta1.Step{Container: container} diff --git a/samples/buildstrategy/source-to-image/buildstrategy_source-to-image_cr.yaml b/samples/buildstrategy/source-to-image/buildstrategy_source-to-image_cr.yaml index 6ce9e79164..e0266e2431 100644 --- a/samples/buildstrategy/source-to-image/buildstrategy_source-to-image_cr.yaml +++ b/samples/buildstrategy/source-to-image/buildstrategy_source-to-image_cr.yaml @@ -22,12 +22,14 @@ spec: - '--dockerfile=/gen-source/Dockerfile.gen' - '--context=/gen-source' - '--destination=$(build.output.image)' + - '--oci-layout-path=/workspace/output/image' + - '--snapshotMode=redo' command: - /kaniko/executor env: - name: DOCKER_CONFIG value: /tekton/home/.docker - image: 'gcr.io/kaniko-project/executor:v0.19.0' + image: gcr.io/kaniko-project/executor:v1.0.0 name: step-build-and-push securityContext: runAsUser: 0