From fad425071ec142fdc6dbcdf0aa584bdcbee0cd46 Mon Sep 17 00:00:00 2001 From: Akram Ben Aissi Date: Fri, 22 May 2020 16:26:31 +0200 Subject: [PATCH] Google/ko 5.0+ requires images to be prefixed by ko:// . --- config/controller.yaml | 16 ++++++++-------- config/webhook.yaml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config/controller.yaml b/config/controller.yaml index 9748e1dd3c1..93d10458b84 100644 --- a/config/controller.yaml +++ b/config/controller.yaml @@ -54,17 +54,17 @@ spec: serviceAccountName: tekton-pipelines-controller containers: - name: tekton-pipelines-controller - image: github.com/tektoncd/pipeline/cmd/controller + image: ko://github.com/tektoncd/pipeline/cmd/controller args: [ # These images are built on-demand by `ko resolve` and are replaced # by image references by digest. - "-kubeconfig-writer-image", "github.com/tektoncd/pipeline/cmd/kubeconfigwriter", - "-creds-image", "github.com/tektoncd/pipeline/cmd/creds-init", - "-git-image", "github.com/tektoncd/pipeline/cmd/git-init", - "-entrypoint-image", "github.com/tektoncd/pipeline/cmd/entrypoint", - "-imagedigest-exporter-image", "github.com/tektoncd/pipeline/cmd/imagedigestexporter", - "-pr-image", "github.com/tektoncd/pipeline/cmd/pullrequest-init", - "-build-gcs-fetcher-image", "github.com/tektoncd/pipeline/vendor/github.com/GoogleCloudPlatform/cloud-builders/gcs-fetcher/cmd/gcs-fetcher", + "-kubeconfig-writer-image", "ko://github.com/tektoncd/pipeline/cmd/kubeconfigwriter", + "-creds-image", "ko://github.com/tektoncd/pipeline/cmd/creds-init", + "-git-image", "ko://github.com/tektoncd/pipeline/cmd/git-init", + "-entrypoint-image", "ko://github.com/tektoncd/pipeline/cmd/entrypoint", + "-imagedigest-exporter-image", "ko://github.com/tektoncd/pipeline/cmd/imagedigestexporter", + "-pr-image", "ko://github.com/tektoncd/pipeline/cmd/pullrequest-init", + "-build-gcs-fetcher-image", "ko://github.com/tektoncd/pipeline/vendor/github.com/GoogleCloudPlatform/cloud-builders/gcs-fetcher/cmd/gcs-fetcher", # These images are pulled from Dockerhub, by digest, as of May 19, 2020. "-nop-image", "tianon/true@sha256:183cb5fd54142948ad88cc986a217465cfe8786cfdd89b1ed1fc49825da413a7", diff --git a/config/webhook.yaml b/config/webhook.yaml index 0acd52bef59..8ee64bfe1e7 100644 --- a/config/webhook.yaml +++ b/config/webhook.yaml @@ -59,7 +59,7 @@ spec: - name: webhook # This is the Go import path for the binary that is containerized # and substituted here. - image: github.com/tektoncd/pipeline/cmd/webhook + image: ko://github.com/tektoncd/pipeline/cmd/webhook env: - name: SYSTEM_NAMESPACE valueFrom: