From 2da1030c23501d0b645f5838a81047c05127b21a Mon Sep 17 00:00:00 2001 From: Aleksey Zhukov Date: Sun, 15 Nov 2020 21:37:24 +0300 Subject: [PATCH] Fix script step on CRI-O runtime For step used script tekton using pod with init container with image configured by "-shell-image". On runtime environment like CRI-O that didn't support images with simultaneously specified tag and digest current configuration leads to: ``` Failed to pull image "gcr.io/distroless/base:debug@sha256:72a0093a0214e414527a97d359313992534f94a689449615875d922097f0ba62": rpc error: code = Unknown desc = Invalid image name "gcr.io/distroless/base:debug@sha256:72a0093a0214e414527a97d359313992534f94a689449615875d922097f0ba62", unknown transport "gcr.io/distroless/base" ``` This changes removed tag and updated image hash for latest available. --- config/controller.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/controller.yaml b/config/controller.yaml index 75d0021c2e6..d7e207af3f9 100644 --- a/config/controller.yaml +++ b/config/controller.yaml @@ -72,8 +72,9 @@ spec: # This is gcr.io/google.com/cloudsdktool/cloud-sdk:302.0.0-slim "-gsutil-image", "gcr.io/google.com/cloudsdktool/cloud-sdk@sha256:27b2c22bf259d9bc1a291e99c63791ba0c27a04d2db0a43241ba0f1f20f4067f", # The shell image must be root in order to create directories and copy files to PVCs. - # gcr.io/distroless/base:debug as of October 16, 2020 - "-shell-image", "gcr.io/distroless/base:debug@sha256:72a0093a0214e414527a97d359313992534f94a689449615875d922097f0ba62" + # gcr.io/distroless/base:debug as of November 15, 2020 + # image shall not contains tag, so it will be supported on a runtime like cri-o + "-shell-image", "gcr.io/distroless/base@sha256:92720b2305d7315b5426aec19f8651e9e04222991f877cae71f40b3141d2f07e" ] volumeMounts: - name: config-logging