Skip to content

Commit

Permalink
Fix script step on CRI-O runtime
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alezkv authored and tekton-robot committed Nov 17, 2020
1 parent 719e304 commit 82e145e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/controller.yaml
Expand Up @@ -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
Expand Down

0 comments on commit 82e145e

Please sign in to comment.