diff --git a/examples/v1/pipelineruns/4808-regression.yaml b/examples/v1/pipelineruns/4808-regression.yaml index 45a8e1632fa..7de8cb01d29 100644 --- a/examples/v1/pipelineruns/4808-regression.yaml +++ b/examples/v1/pipelineruns/4808-regression.yaml @@ -11,7 +11,7 @@ spec: type: string steps: - name: print-result - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 env: - name: PARAM_TO_PRINT value: $(params.TO_PRINT) @@ -39,7 +39,7 @@ spec: description: A result string steps: - name: gen-result - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 env: - name: PARAM_STRING_LENGTH value: $(params.STRING_LENGTH) diff --git a/examples/v1/pipelineruns/6139-regression.yaml b/examples/v1/pipelineruns/6139-regression.yaml index 93c127d6535..a7b448e4c6a 100644 --- a/examples/v1/pipelineruns/6139-regression.yaml +++ b/examples/v1/pipelineruns/6139-regression.yaml @@ -15,7 +15,7 @@ spec: results: - name: result-one steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: | #!/bin/sh echo "Hello world!" @@ -28,7 +28,7 @@ spec: results: - name: result-two steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: | #!/bin/sh echo "Goodbye world!" @@ -43,7 +43,7 @@ spec: results: - name: result-three steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: | #!/bin/sh echo "Shutdown world!" diff --git a/examples/v1/pipelineruns/alpha/param-enum.yaml b/examples/v1/pipelineruns/alpha/param-enum.yaml index 9eb1a449924..aa0827b9875 100644 --- a/examples/v1/pipelineruns/alpha/param-enum.yaml +++ b/examples/v1/pipelineruns/alpha/param-enum.yaml @@ -9,7 +9,7 @@ spec: enum: ["v1", "v2", "v3"] steps: - name: build - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | echo "$(params.message)" --- diff --git a/examples/v1/pipelineruns/alpha/pipelinerun-large-results.yaml b/examples/v1/pipelineruns/alpha/pipelinerun-large-results.yaml index b42e5757cc9..476e0f7beaf 100644 --- a/examples/v1/pipelineruns/alpha/pipelinerun-large-results.yaml +++ b/examples/v1/pipelineruns/alpha/pipelinerun-large-results.yaml @@ -20,7 +20,7 @@ spec: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | # produce a result - a random string with 2,500 characters - result1 tr -dc A-Za-z0-9 $(results.suffix.path) - name: do-something @@ -25,7 +25,7 @@ spec: - name: arg steps: - name: do-something - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo "$(params.arg)" | grep "prefix:suffix" params: diff --git a/examples/v1/pipelineruns/pipelinerun-results.yaml b/examples/v1/pipelineruns/pipelinerun-results.yaml index e79b29e7840..06bb885849e 100644 --- a/examples/v1/pipelineruns/pipelinerun-results.yaml +++ b/examples/v1/pipelineruns/pipelinerun-results.yaml @@ -13,7 +13,7 @@ spec: description: the sum of the first and second operand steps: - name: add - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 env: - name: OP1 value: $(params.first) diff --git a/examples/v1/pipelineruns/pipelinerun-task-execution-status.yaml b/examples/v1/pipelineruns/pipelinerun-task-execution-status.yaml index 3165aaa6778..dfc48ac3100 100644 --- a/examples/v1/pipelineruns/pipelinerun-task-execution-status.yaml +++ b/examples/v1/pipelineruns/pipelinerun-task-execution-status.yaml @@ -10,7 +10,7 @@ spec: - name: task1 # successful task taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 name: hello script: | echo "Hello World!" @@ -21,7 +21,7 @@ spec: values: ["true"] taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 name: success script: | exit 0 @@ -37,7 +37,7 @@ spec: - name: task1Status - name: task2Status steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 name: verify-dag-task-status script: | if [[ $(params.task1Status) != "Succeeded" || $(params.task2Status) != "None" ]]; then @@ -51,7 +51,7 @@ spec: params: - name: aggregateStatus steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 name: verify-aggregate-tasks-status script: | if [[ $(params.aggregateStatus) != "Completed" ]]; then diff --git a/examples/v1/pipelineruns/pipelinerun-with-extra-params.yaml b/examples/v1/pipelineruns/pipelinerun-with-extra-params.yaml index 88b48530773..3d1e952038c 100644 --- a/examples/v1/pipelineruns/pipelinerun-with-extra-params.yaml +++ b/examples/v1/pipelineruns/pipelinerun-with-extra-params.yaml @@ -35,7 +35,7 @@ spec: description: The second integer steps: - name: sum - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n $(( "$(inputs.params.a)" + "$(inputs.params.b)" )) diff --git a/examples/v1/pipelineruns/pipelinerun-with-final-results.yaml b/examples/v1/pipelineruns/pipelinerun-with-final-results.yaml index 1e7e5ed9c37..98600ebd98c 100644 --- a/examples/v1/pipelineruns/pipelinerun-with-final-results.yaml +++ b/examples/v1/pipelineruns/pipelinerun-with-final-results.yaml @@ -58,7 +58,7 @@ spec: description: The product of the two provided integers steps: - name: product - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n $(( "$(params.a)" * "$(params.b)" )) | tee $(results.product.path) diff --git a/examples/v1/pipelineruns/pipelinerun-with-final-tasks.yaml b/examples/v1/pipelineruns/pipelinerun-with-final-tasks.yaml index cb54dc23560..e3091157890 100644 --- a/examples/v1/pipelineruns/pipelinerun-with-final-tasks.yaml +++ b/examples/v1/pipelineruns/pipelinerun-with-final-tasks.yaml @@ -174,7 +174,7 @@ spec: - name: commit steps: - name: check-commit-initialized - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | if [[ ! $(params.commit) ]]; then exit 1 diff --git a/examples/v1/pipelineruns/pipelinerun-with-params.yaml b/examples/v1/pipelineruns/pipelinerun-with-params.yaml index ef45a2430ba..e836a386839 100644 --- a/examples/v1/pipelineruns/pipelinerun-with-params.yaml +++ b/examples/v1/pipelineruns/pipelinerun-with-params.yaml @@ -47,7 +47,7 @@ spec: description: The second integer steps: - name: sum - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n $(( "$(inputs.params.a)" + "$(inputs.params.b)" )) @@ -71,7 +71,7 @@ spec: description: The second integer steps: - name: product - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n $(( "$(inputs.params.a)" * "$(inputs.params.b)" )) diff --git a/examples/v1/pipelineruns/pipelinerun-with-when-expressions.yaml b/examples/v1/pipelineruns/pipelinerun-with-when-expressions.yaml index 25eb390bf1b..f65de32cceb 100644 --- a/examples/v1/pipelineruns/pipelinerun-with-when-expressions.yaml +++ b/examples/v1/pipelineruns/pipelinerun-with-when-expressions.yaml @@ -54,7 +54,7 @@ spec: description: indicates whether the file exists or is missing steps: - name: check-file - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | if test -f $(workspaces.source.path)/$(params.path); then printf yes | tee $(results.exists.path) @@ -79,7 +79,7 @@ spec: taskSpec: steps: - name: echo - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: 'echo hello' - name: task-should-be-skipped-1 when: @@ -121,7 +121,7 @@ spec: taskSpec: steps: - name: echo - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: exit 1 finally: - name: finally-task-should-be-skipped-1 # when expression using execution status, evaluates to false diff --git a/examples/v1/pipelineruns/propagating-workspaces-in-pipelines.yaml b/examples/v1/pipelineruns/propagating-workspaces-in-pipelines.yaml index 472c17ca665..f3729bf3fb2 100644 --- a/examples/v1/pipelineruns/propagating-workspaces-in-pipelines.yaml +++ b/examples/v1/pipelineruns/propagating-workspaces-in-pipelines.yaml @@ -9,7 +9,7 @@ spec: - name: t1 taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 command: ["ls"] args: ["$(workspaces.shared-data.path)"] --- diff --git a/examples/v1/pipelineruns/task_results_example.yaml b/examples/v1/pipelineruns/task_results_example.yaml index 209c75c7fb3..044eb7b2060 100644 --- a/examples/v1/pipelineruns/task_results_example.yaml +++ b/examples/v1/pipelineruns/task_results_example.yaml @@ -58,7 +58,7 @@ spec: description: The sum of the two provided integers steps: - name: sum - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n $(( "$(params.a)" + "$(params.b)" )) | tee $(results.sum.path) @@ -85,7 +85,7 @@ spec: description: The product of the two provided integers steps: - name: product - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n $(( "$(params.a)" * "$(params.b)" )) | tee $(results.product.path) diff --git a/examples/v1/pipelineruns/using-optional-workspaces-in-when-expressions.yaml b/examples/v1/pipelineruns/using-optional-workspaces-in-when-expressions.yaml index a671e741abd..9018920055e 100644 --- a/examples/v1/pipelineruns/using-optional-workspaces-in-when-expressions.yaml +++ b/examples/v1/pipelineruns/using-optional-workspaces-in-when-expressions.yaml @@ -47,7 +47,7 @@ spec: - name: message-of-the-day optional: true steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: | #!/usr/bin/env ash for f in "$(workspaces.message-of-the-day.path)"/* ; do @@ -63,6 +63,6 @@ spec: taskSpec: steps: - name: print-default - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo "No message-of-the-day workspace was provided. This is the default MOTD instead!" diff --git a/examples/v1/pipelineruns/using-retries-and-retry-count-variables.yaml b/examples/v1/pipelineruns/using-retries-and-retry-count-variables.yaml index 54ad19777c5..b1c25961ef9 100644 --- a/examples/v1/pipelineruns/using-retries-and-retry-count-variables.yaml +++ b/examples/v1/pipelineruns/using-retries-and-retry-count-variables.yaml @@ -19,7 +19,7 @@ spec: - name: pipelineTask-retries - name: pipelineTask-retry-count steps: - - image: docker.io/library/alpine:3.12.0 + - image: docker.io/library/alpine:3.20.1 script: | #!/usr/bin/env sh if [ "$(params.pipelineTask-retry-count)" == "$(params.pipelineTask-retries)" ]; then @@ -33,6 +33,6 @@ spec: - retry-me taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: | echo "hello world" diff --git a/examples/v1/pipelineruns/using_context_variables.yaml b/examples/v1/pipelineruns/using_context_variables.yaml index a468de97d4c..6ebf421f973 100644 --- a/examples/v1/pipelineruns/using_context_variables.yaml +++ b/examples/v1/pipelineruns/using_context_variables.yaml @@ -28,12 +28,12 @@ spec: - name: pipelineRun-namespace - name: pipelineTask-retries steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 name: print-uid script: | echo "TaskRun UID: $(context.taskRun.uid)" echo "PipelineRun UID from params: $(params.pipeline-uid)" - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 name: print-names script: | echo "Task name: $(context.task.name)" @@ -41,7 +41,7 @@ spec: echo "Pipeline name from params: $(params.pipeline-name)" echo "PipelineRun name from params: $(params.pipelineRun-name)" echo "PipelineRun namespace from params: $(params.pipelineRun-namespace)" - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 name: print-retries script: | echo "PipelineTask retries from params: $(params.pipelineTask-retries)" diff --git a/examples/v1/taskruns/alpha/param-enum.yaml b/examples/v1/taskruns/alpha/param-enum.yaml index 9c64308bcca..d749bff8570 100644 --- a/examples/v1/taskruns/alpha/param-enum.yaml +++ b/examples/v1/taskruns/alpha/param-enum.yaml @@ -9,7 +9,7 @@ spec: default: "v1" steps: - name: build - image: docker.io/library/bash:3.2 + image: docker.io/library/bash:5.2.26 script: | echo "$(params.message)" --- diff --git a/examples/v1/taskruns/alpha/produce-consume-artifacts.yaml b/examples/v1/taskruns/alpha/produce-consume-artifacts.yaml index cca1f84fd1e..4a670b0819a 100644 --- a/examples/v1/taskruns/alpha/produce-consume-artifacts.yaml +++ b/examples/v1/taskruns/alpha/produce-consume-artifacts.yaml @@ -8,7 +8,7 @@ spec: A simple task that populates artifacts to TaskRun stepState steps: - name: artifacts-producer - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | cat > $(step.artifacts.path) << EOF { @@ -42,11 +42,11 @@ spec: } EOF - name: artifacts-consumer - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | echo $(steps.artifacts-producer.inputs.input-artifacts) - name: artifacts-consumer-python - image: docker.io/library/python:latest + image: docker.io/library/python:3.12.4 script: | #!/usr/bin/env python3 import json diff --git a/examples/v1/taskruns/alpha/step-stream-workspace.yaml b/examples/v1/taskruns/alpha/step-stream-workspace.yaml index d8f632d115e..c3e52c38a37 100644 --- a/examples/v1/taskruns/alpha/step-stream-workspace.yaml +++ b/examples/v1/taskruns/alpha/step-stream-workspace.yaml @@ -43,26 +43,26 @@ spec: - wrong stderrConfig: path: $(results.error2.path) - - image: docker.io/library/bash + - image: docker.io/library/bash:5.2.26 workspaces: - name: data onError: continue args: - -c - "echo foobar >$(workspaces.data.path)/foobar.txt" - - image: docker.io/library/bash + - image: docker.io/library/bash:5.2.26 onError: continue args: - -c - "2>$(results.error.path) >&2 echo -n fooerr" - - image: docker.io/library/bash + - image: docker.io/library/bash:5.2.26 workspaces: - name: data workingDir: $(workspaces.data.path) onError: continue script: | echo local >out.txt - - image: docker.io/library/bash + - image: docker.io/library/bash:5.2.26 workspaces: - name: data onError: continue diff --git a/examples/v1/taskruns/array-default.yaml b/examples/v1/taskruns/array-default.yaml index 948020290ef..2f65f5d0a19 100644 --- a/examples/v1/taskruns/array-default.yaml +++ b/examples/v1/taskruns/array-default.yaml @@ -23,7 +23,7 @@ spec: steps: # this step should echo "foo bar foo-default bar-default baz" - name: echo-params - image: docker.io/library/bash:3.2 + image: docker.io/library/bash:5.2.26 args: [ "echo", "$(params.array-to-echo[*])", diff --git a/examples/v1/taskruns/beta/emit-array-results.yaml b/examples/v1/taskruns/beta/emit-array-results.yaml index 5815e568eb0..ba26a0fc0de 100644 --- a/examples/v1/taskruns/beta/emit-array-results.yaml +++ b/examples/v1/taskruns/beta/emit-array-results.yaml @@ -12,7 +12,7 @@ spec: description: The array results steps: - name: write-array - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n "[\"hello\",\"world\"]" | tee $(results.array-results.path) diff --git a/examples/v1/taskruns/beta/large-task-result.yaml b/examples/v1/taskruns/beta/large-task-result.yaml index ea269d23a86..616423eccf2 100644 --- a/examples/v1/taskruns/beta/large-task-result.yaml +++ b/examples/v1/taskruns/beta/large-task-result.yaml @@ -14,13 +14,13 @@ spec: - name: result5 steps: - name: step1 - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash cat /dev/urandom | head -c 2500 | base64 | tee $(results.result1.path) #about 1 K result cat /dev/urandom | head -c 2500 | base64 | tee $(results.result2.path) #about 4 K result - name: step2 - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash cat /dev/urandom | head -c 2500 | base64 | tee $(results.result3.path) #about 1 K result diff --git a/examples/v1/taskruns/beta/param_array_indexing.yaml b/examples/v1/taskruns/beta/param_array_indexing.yaml index 2c779b964d1..46d76fc1f67 100644 --- a/examples/v1/taskruns/beta/param_array_indexing.yaml +++ b/examples/v1/taskruns/beta/param_array_indexing.yaml @@ -15,7 +15,7 @@ spec: steps: # this step should echo "foo" - name: echo-params-1 - image: docker.io/library/bash:3.2 + image: docker.io/library/bash:5.2.26 args: [ "echo", "$(params.array-to-echo[0])", diff --git a/examples/v1/taskruns/beta/stepaction-passing-results.yaml b/examples/v1/taskruns/beta/stepaction-passing-results.yaml index 7fa45214522..4f14223ca29 100644 --- a/examples/v1/taskruns/beta/stepaction-passing-results.yaml +++ b/examples/v1/taskruns/beta/stepaction-passing-results.yaml @@ -15,7 +15,7 @@ spec: type: string IMAGE_DIGEST: type: string - image: docker.io/library/bash:3.2 + image: docker.io/library/bash:5.2.26 env: - name: STRINGPARAM value: $(params.param2) @@ -75,7 +75,7 @@ spec: type: string IMAGE_DIGEST: type: string - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "[\"image1\", \"image2\", \"image3\"]" | tee $(step.results.result1.path) echo -n "foo" | tee $(step.results.result2.path) diff --git a/examples/v1/taskruns/beta/stepaction-results.yaml b/examples/v1/taskruns/beta/stepaction-results.yaml index 7954ecded25..c287a6391ef 100644 --- a/examples/v1/taskruns/beta/stepaction-results.yaml +++ b/examples/v1/taskruns/beta/stepaction-results.yaml @@ -3,7 +3,7 @@ kind: StepAction metadata: name: step-action spec: - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 results: - name: result1 - name: result2 diff --git a/examples/v1/taskruns/beta/stepaction.yaml b/examples/v1/taskruns/beta/stepaction.yaml index 145d3b35bfb..a7132d6d716 100644 --- a/examples/v1/taskruns/beta/stepaction.yaml +++ b/examples/v1/taskruns/beta/stepaction.yaml @@ -3,7 +3,7 @@ kind: StepAction metadata: name: step-action spec: - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo "I am a Step Action!!!" --- diff --git a/examples/v1/taskruns/beta/stepactions-steptemplate.yaml b/examples/v1/taskruns/beta/stepactions-steptemplate.yaml index cac52789314..906dfe242d7 100644 --- a/examples/v1/taskruns/beta/stepactions-steptemplate.yaml +++ b/examples/v1/taskruns/beta/stepactions-steptemplate.yaml @@ -3,7 +3,7 @@ kind: StepAction metadata: name: step-action spec: - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 command: ["env"] --- apiVersion: tekton.dev/v1 diff --git a/examples/v1/taskruns/beta/workspace-in-sidecar.yaml b/examples/v1/taskruns/beta/workspace-in-sidecar.yaml index 65129321bca..5130e432ec1 100644 --- a/examples/v1/taskruns/beta/workspace-in-sidecar.yaml +++ b/examples/v1/taskruns/beta/workspace-in-sidecar.yaml @@ -17,7 +17,7 @@ spec: workspaces: - name: signals steps: - - image: docker.io/library/alpine:3.12.0 + - image: docker.io/library/alpine:3.20.1 computeResources: requests: memory: "16Mi" @@ -33,7 +33,7 @@ spec: echo "Sidecar responded: ${response}" echo "Step Done." sidecars: - - image: docker.io/library/alpine:3.12.0 + - image: docker.io/library/alpine:3.20.1 computeResources: requests: memory: "16Mi" diff --git a/examples/v1/taskruns/beta/workspace-isolation.yaml b/examples/v1/taskruns/beta/workspace-isolation.yaml index 8d14e72d996..4630a1320de 100644 --- a/examples/v1/taskruns/beta/workspace-isolation.yaml +++ b/examples/v1/taskruns/beta/workspace-isolation.yaml @@ -18,7 +18,7 @@ spec: - name: signals steps: - name: await-sidecar-signal - image: docker.io/library/alpine:3.12.0 + image: docker.io/library/alpine:3.20.1 workspaces: - name: signals script: | @@ -32,7 +32,7 @@ spec: done echo "Saw ready file" - name: check-signals-access - image: docker.io/library/alpine:3.12.0 + image: docker.io/library/alpine:3.20.1 script: | #!/usr/bin/env ash if [ -f "$(workspaces.signals.path)"/start ] ; then @@ -41,7 +41,7 @@ spec: fi sidecars: - name: await-step-signal - image: docker.io/library/alpine:3.12.0 + image: docker.io/library/alpine:3.20.1 workspaces: - name: signals script: | diff --git a/examples/v1/taskruns/creds-init-only-mounts-provided-credentials.yaml b/examples/v1/taskruns/creds-init-only-mounts-provided-credentials.yaml index fd5c28db3df..b3a7d15e746 100644 --- a/examples/v1/taskruns/creds-init-only-mounts-provided-credentials.yaml +++ b/examples/v1/taskruns/creds-init-only-mounts-provided-credentials.yaml @@ -30,7 +30,7 @@ spec: taskSpec: steps: - name: check-credentials - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | #!/usr/bin/env ash set -xe diff --git a/examples/v1/taskruns/custom-env.yaml b/examples/v1/taskruns/custom-env.yaml index ef1ea34233a..775d3c25c88 100644 --- a/examples/v1/taskruns/custom-env.yaml +++ b/examples/v1/taskruns/custom-env.yaml @@ -5,7 +5,7 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: | #!/usr/bin/env bash [[ $MY_VAR1 == foo ]] diff --git a/examples/v1/taskruns/entrypoint-resolution.yaml b/examples/v1/taskruns/entrypoint-resolution.yaml index 48416db1a08..6d037346fc0 100644 --- a/examples/v1/taskruns/entrypoint-resolution.yaml +++ b/examples/v1/taskruns/entrypoint-resolution.yaml @@ -13,17 +13,17 @@ spec: # Multi-arch image with no command defined, but with args. We'll look # up the commands and pass it to the entrypoint binary via env var, then # append the specified args. - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 args: ['-c', 'echo', 'hello'] # Multi-arch image, but since we specify `script` we don't need to look it # up and pass it down. - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: echo hello # Multi-arch image, but since we specify `command` and `args` we don't # need to look it up and pass it down. - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 command: ['sh', '-c'] args: ['echo hello'] diff --git a/examples/v1/taskruns/home-is-set.yaml b/examples/v1/taskruns/home-is-set.yaml index cc00ee6f9b0..8de7d51d4cf 100644 --- a/examples/v1/taskruns/home-is-set.yaml +++ b/examples/v1/taskruns/home-is-set.yaml @@ -5,7 +5,7 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 env: - name: HOME value: /tekton/home diff --git a/examples/v1/taskruns/ignore-step-error.yaml b/examples/v1/taskruns/ignore-step-error.yaml index 3cd303dfe90..c667c47e565 100644 --- a/examples/v1/taskruns/ignore-step-error.yaml +++ b/examples/v1/taskruns/ignore-step-error.yaml @@ -6,14 +6,14 @@ spec: taskSpec: steps: # exit with 1 and ignore non zero exit code - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 onError: continue name: exit-with-1 script: | exit 1 # check if the /tekton/steps/step-/exitCode got created and contains the exit code # check if the symlink /tekton/steps/0/ got created - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 name: verify-step-path script: | exitCode=`cat $(steps.step-exit-with-1.exitCode.path)` diff --git a/examples/v1/taskruns/object-param-result.yaml b/examples/v1/taskruns/object-param-result.yaml index af558ea7b32..b8fe55df2ac 100644 --- a/examples/v1/taskruns/object-param-result.yaml +++ b/examples/v1/taskruns/object-param-result.yaml @@ -43,7 +43,7 @@ spec: echo "validate the params.gitrepo.commit successfully" fi - name: write-object-result - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n "{\"IMAGE_URL\":\"ar.com\", \"IMAGE_DIGEST\":\"sha234\"}" > $(results.object-results.path) diff --git a/examples/v1/taskruns/optional-workspaces.yaml b/examples/v1/taskruns/optional-workspaces.yaml index 64d0b12969a..d2fe5259bf1 100644 --- a/examples/v1/taskruns/optional-workspaces.yaml +++ b/examples/v1/taskruns/optional-workspaces.yaml @@ -14,7 +14,7 @@ spec: optional: true steps: - name: check-workspaces - image: docker.io/library/alpine:3.12.0 + image: docker.io/library/alpine:3.20.1 script: | if [ "$(workspaces.source-code.bound)" == "true" ]; then printf "Source code workspace was provided at %s!\n" "$(workspaces.source-code.path)" diff --git a/examples/v1/taskruns/readonly-internal-dir.yaml b/examples/v1/taskruns/readonly-internal-dir.yaml index 87682e423a8..810551a0753 100644 --- a/examples/v1/taskruns/readonly-internal-dir.yaml +++ b/examples/v1/taskruns/readonly-internal-dir.yaml @@ -7,9 +7,9 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: exit 0 - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: | set +e # dont fail the script on error @@ -19,7 +19,7 @@ spec: echo "able to write to run directory of non-current step" exit 1 fi - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: | set +e # dont fail the script on error diff --git a/examples/v1/taskruns/secret-volume-params.yaml b/examples/v1/taskruns/secret-volume-params.yaml index 209ab9fbde6..a6f0b5b5118 100644 --- a/examples/v1/taskruns/secret-volume-params.yaml +++ b/examples/v1/taskruns/secret-volume-params.yaml @@ -16,7 +16,7 @@ spec: description: Name of secret type: string steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: | #!/usr/bin/env bash SECRET_PASSWORD=$(cat /var/secret/ninja) diff --git a/examples/v1/taskruns/secret-volume.yaml b/examples/v1/taskruns/secret-volume.yaml index 8060711c752..bed6ad3b22f 100644 --- a/examples/v1/taskruns/secret-volume.yaml +++ b/examples/v1/taskruns/secret-volume.yaml @@ -12,7 +12,7 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: | #!/usr/bin/env bash SECRET_PASSWORD=$(cat /var/secret/ninja) diff --git a/examples/v1/taskruns/step-script.yaml b/examples/v1/taskruns/step-script.yaml index 1e3026ac51a..e31cf64b256 100644 --- a/examples/v1/taskruns/step-script.yaml +++ b/examples/v1/taskruns/step-script.yaml @@ -59,13 +59,13 @@ spec: cat file - name: node - image: docker.io/library/node + image: docker.io/library/node:lts-alpine3.20 script: | #!/usr/bin/env node console.log("Hello from Node!") - name: python - image: docker.io/library/python + image: docker.io/library/python:3.12.4 script: | #!/usr/bin/env python3 print("Hello from Python!") @@ -78,7 +78,7 @@ spec: # Test that param values are replaced. - name: params-applied - image: docker.io/library/python + image: docker.io/library/python:3.12.4 script: | #!/usr/bin/env python3 v = '$(params.PARAM)' @@ -99,7 +99,7 @@ spec: # Test that multiple dollar signs next to each other are not replaced by Kubernetes - name: dollar-signs-allowed - image: docker.io/library/python + image: docker.io/library/python:3.12.4 script: | #!/usr/bin/env python3 if '$' != '\u0024': @@ -118,7 +118,7 @@ spec: # Test that bash scripts with variable evaluations work as expected - name: bash-variable-evaluations - image: docker.io/library/bash:5.1.8 + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash set -xe diff --git a/examples/v1/taskruns/steps-run-in-order.yaml b/examples/v1/taskruns/steps-run-in-order.yaml index 84927587176..b7f12d837c5 100644 --- a/examples/v1/taskruns/steps-run-in-order.yaml +++ b/examples/v1/taskruns/steps-run-in-order.yaml @@ -5,8 +5,8 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 # NB: command is not set, so it must be looked up from the registry. args: ['-c', 'sleep 3 && touch foo'] - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 args: ['-c', 'ls', 'foo'] diff --git a/examples/v1/taskruns/task-result.yaml b/examples/v1/taskruns/task-result.yaml index 37fd9c069b7..ce4ea8e44bf 100644 --- a/examples/v1/taskruns/task-result.yaml +++ b/examples/v1/taskruns/task-result.yaml @@ -13,12 +13,12 @@ spec: description: The current date in human readable format steps: - name: print-date-unix-timestamp - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash date +%s | tee $(results.current-date-unix-timestamp.path) - name: print-date-human-readable - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash date | tee $(results.current-date-human-readable.path) diff --git a/examples/v1/taskruns/unnamed-steps.yaml b/examples/v1/taskruns/unnamed-steps.yaml index aed2a58cd4b..2db9d957a42 100644 --- a/examples/v1/taskruns/unnamed-steps.yaml +++ b/examples/v1/taskruns/unnamed-steps.yaml @@ -5,9 +5,9 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: 'true' - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: 'true' - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: 'true' diff --git a/examples/v1/taskruns/using_context_variables.yaml b/examples/v1/taskruns/using_context_variables.yaml index cff1efac1f8..574104085f4 100644 --- a/examples/v1/taskruns/using_context_variables.yaml +++ b/examples/v1/taskruns/using_context_variables.yaml @@ -5,11 +5,11 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 name: print-uid script: | echo "TaskRunUID name: $(context.taskRun.uid)" - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 name: print-names script: | echo "Task name: $(context.task.name)" diff --git a/examples/v1/taskruns/workspace-in-sidecar.yaml b/examples/v1/taskruns/workspace-in-sidecar.yaml index 13d2eefb5ea..a45611fcac6 100644 --- a/examples/v1/taskruns/workspace-in-sidecar.yaml +++ b/examples/v1/taskruns/workspace-in-sidecar.yaml @@ -18,7 +18,7 @@ spec: workspaces: - name: signals steps: - - image: docker.io/library/alpine:3.12.0 + - image: docker.io/library/alpine:3.20.1 computeResources: requests: memory: "16Mi" @@ -34,7 +34,7 @@ spec: echo "Sidecar responded: ${response}" echo "Step Done." sidecars: - - image: docker.io/library/alpine:3.12.0 + - image: docker.io/library/alpine:3.20.1 computeResources: requests: memory: "16Mi" diff --git a/examples/v1beta1/taskruns/clustertask.yaml b/examples/v1beta1/taskruns/clustertask.yaml index b27e7b3cc46..b286a69e38e 100644 --- a/examples/v1beta1/taskruns/clustertask.yaml +++ b/examples/v1beta1/taskruns/clustertask.yaml @@ -6,7 +6,7 @@ metadata: name: clustertask-v1beta1 spec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: echo hello --- apiVersion: tekton.dev/v1beta1 diff --git a/pkg/reconciler/pipelinerun/pipelinerun_test.go b/pkg/reconciler/pipelinerun/pipelinerun_test.go index ff523ddf6d1..3327606b142 100644 --- a/pkg/reconciler/pipelinerun/pipelinerun_test.go +++ b/pkg/reconciler/pipelinerun/pipelinerun_test.go @@ -12091,7 +12091,7 @@ spec: type: array steps: - name: produce-a-list-of-platforms - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n "[\"linux\",\"mac\",\"windows\"]" | tee $(results.platforms.path) @@ -12576,7 +12576,7 @@ spec: type: array steps: - name: produce-a-list-of-platforms - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n "[\"linux\",\"mac\",\"windows\"]" | tee $(results.platforms.path) diff --git a/pkg/reconciler/taskrun/taskrun_test.go b/pkg/reconciler/taskrun/taskrun_test.go index ea4b9c1ce6c..9c970ecdf3a 100644 --- a/pkg/reconciler/taskrun/taskrun_test.go +++ b/pkg/reconciler/taskrun/taskrun_test.go @@ -2762,7 +2762,7 @@ metadata: spec: taskSpec: sidecars: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 - image: whatever steps: - image: alpine diff --git a/tekton/release-pipeline.yaml b/tekton/release-pipeline.yaml index d04bba1b1e1..234a97bf322 100644 --- a/tekton/release-pipeline.yaml +++ b/tekton/release-pipeline.yaml @@ -242,7 +242,7 @@ spec: description: The full URL of the release file (no tag) in the bucket steps: - name: create-results - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 env: - name: RELEASE_BUCKET value: $(params.releaseBucket) diff --git a/test/affinity_assistant_test.go b/test/affinity_assistant_test.go index 19ee594d207..16166a57865 100644 --- a/test/affinity_assistant_test.go +++ b/test/affinity_assistant_test.go @@ -56,14 +56,14 @@ spec: - name: my-workspace taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: echo hello foo - name: bar workspaces: - name: my-workspace taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: echo hello bar workspaces: - name: my-workspace @@ -151,14 +151,14 @@ spec: - name: my-workspace taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: echo hello foo - name: bar workspaces: - name: my-workspace2 taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: echo hello bar - name: double-ws workspaces: @@ -166,12 +166,12 @@ spec: - name: my-workspace2 taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: echo double-ws - name: no-ws taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: echo no-ws workspaces: - name: my-workspace diff --git a/test/cancel_test.go b/test/cancel_test.go index 7dc4fd48ecf..491eec3637c 100644 --- a/test/cancel_test.go +++ b/test/cancel_test.go @@ -65,7 +65,7 @@ spec: retries: %d taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: 'sleep 5000' `, helpers.ObjectNameForTest(t), namespace, numRetries)) diff --git a/test/conformance/conformance_test.go b/test/conformance/conformance_test.go index 736f0b0c108..3ba7cf7ff08 100644 --- a/test/conformance/conformance_test.go +++ b/test/conformance/conformance_test.go @@ -156,7 +156,7 @@ spec: default: param-value steps: - name: node - image: docker.io/library/node + image: docker.io/library/node:lts-alpine3.20 script: | #!/usr/bin/env node console.log("Hello from Node!") @@ -167,7 +167,7 @@ spec: print "Hello from Perl!" # Test that param values are replaced. - name: params-applied - image: docker.io/library/python + image: docker.io/library/python:3.12.4 script: | #!/usr/bin/env python3 v = '$(params.PARAM)' @@ -186,7 +186,7 @@ spec: [[ $2 == "world" ]] # Test that multiple dollar signs next to each other are not replaced by Kubernetes - name: dollar-signs-allowed - image: docker.io/library/python + image: docker.io/library/python:3.12.4 script: | #!/usr/bin/env python3 if '$' != '\u0024': @@ -205,7 +205,7 @@ spec: # Test that bash scripts with variable evaluations work as expected - name: bash-variable-evaluations - image: docker.io/library/bash:5.1.8 + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash set -xe @@ -441,7 +441,7 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 args: ['-c', 'echo hello'] `, helpers.ObjectNameForTest(t)) @@ -493,7 +493,7 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: exit 1 `, helpers.ObjectNameForTest(t)) @@ -794,7 +794,7 @@ spec: type: array steps: - name: concat-array-params - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 command: ["/bin/sh", "-c"] args: - echo -n $(params.array-to-concat[0])"-"$(params.array-to-concat[1]) | tee $(results.concat-array.path); @@ -863,12 +863,12 @@ spec: default: "string-baz-default" steps: - name: string-params-to-result - image: docker.io/library/bash:3.2 + image: docker.io/library/bash:5.2.26 command: ["/bin/sh", "-c"] args: - echo -n $(params.string-param)"-"$(params.string-default) | tee $(results.string-output.path); - name: array-params-to-result - image: docker.io/library/bash:3.2 + image: docker.io/library/bash:5.2.26 command: ["/bin/sh", "-c"] args: - echo -n $(params.array-param[0])"-"$(params.array-defaul-param[1]) | tee $(results.array-output.path); @@ -940,7 +940,7 @@ spec: default: "foo" steps: - name: add - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 env: - name: OP1 value: $(params.foo) @@ -1041,7 +1041,7 @@ spec: timeout: 15s taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'sleep 15001'] `, helpers.ObjectNameForTest(t)) @@ -1124,7 +1124,7 @@ spec: description: The second integer from PipelineTask Param steps: - name: sum - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n $(( "$(inputs.params.op0)" + "$(inputs.params.op1)" )) @@ -1177,7 +1177,7 @@ spec: - name: suffix steps: - name: generate-suffix - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "suffix" > $(results.suffix.path) - name: do-something @@ -1188,7 +1188,7 @@ spec: - name: arg steps: - name: do-something - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "$(params.arg)" | tee $(results.output.path) params: @@ -1320,7 +1320,7 @@ spec: timeout: 15s taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'sleep 15001'] `, helpers.ObjectNameForTest(t)) @@ -1359,7 +1359,7 @@ spec: - name: timeout taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'sleep 15001'] `, helpers.ObjectNameForTest(t)) @@ -1410,7 +1410,7 @@ spec: description: The product of the two provided integers steps: - name: product - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n $(( "$(params.a)" * "$(params.b)" )) | tee $(results.product.path) @@ -1427,7 +1427,7 @@ spec: description: The product of the two provided integers steps: - name: product - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n $(( "$(params.a)" * "$(params.b)" )) | tee $(results.product.path) diff --git a/test/conversion_test.go b/test/conversion_test.go index 4341b83adf8..d319e8cd585 100644 --- a/test/conversion_test.go +++ b/test/conversion_test.go @@ -224,7 +224,7 @@ spec: - name: task1-result value: task1-val steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 onError: continue name: exit-with-255 script: | @@ -278,7 +278,7 @@ spec: - name: task1-result value: task1-val steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 onError: continue name: exit-with-255 script: | diff --git a/test/custom-task-ctrls/wait-task-beta/example_customrun_matrix_results.yaml b/test/custom-task-ctrls/wait-task-beta/example_customrun_matrix_results.yaml index b768868ebf8..9122f4354b7 100644 --- a/test/custom-task-ctrls/wait-task-beta/example_customrun_matrix_results.yaml +++ b/test/custom-task-ctrls/wait-task-beta/example_customrun_matrix_results.yaml @@ -11,7 +11,7 @@ spec: - name: duration steps: - name: echo - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo "$(params.duration)" --- @@ -25,7 +25,7 @@ spec: type: array steps: - name: produce-a-list-of-durations - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n "[\"10s\",\"2s\",\"5s\"]" | tee $(results.durations.path) diff --git a/test/custom-task-ctrls/wait-task-beta/example_pipelinerun.yaml b/test/custom-task-ctrls/wait-task-beta/example_pipelinerun.yaml index cbc3fae645e..c219179fef0 100644 --- a/test/custom-task-ctrls/wait-task-beta/example_pipelinerun.yaml +++ b/test/custom-task-ctrls/wait-task-beta/example_pipelinerun.yaml @@ -8,7 +8,7 @@ spec: - name: before taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: echo before wait - name: wait taskRef: @@ -21,6 +21,6 @@ spec: - name: after taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: echo after wait runAfter: ['wait'] diff --git a/test/dag_test.go b/test/dag_test.go index caeb9d0a96b..200edddd729 100644 --- a/test/dag_test.go +++ b/test/dag_test.go @@ -70,9 +70,9 @@ spec: results: - name: result steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: 'echo $(params["text"])' - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 # Sleep for N seconds so that we can check that tasks that # should be run in parallel have overlap. script: | diff --git a/test/duplicate_test.go b/test/duplicate_test.go index d189601c63a..e15e40d3bc5 100644 --- a/test/duplicate_test.go +++ b/test/duplicate_test.go @@ -59,7 +59,7 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/echo'] args: ['simple'] `, taskrunName, namespace)) diff --git a/test/entrypoint_test.go b/test/entrypoint_test.go index 7963d64f465..657f14620ba 100644 --- a/test/entrypoint_test.go +++ b/test/entrypoint_test.go @@ -54,10 +54,10 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 workingDir: /workspace script: 'sleep 3 && touch foo' - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 workingDir: /workspace script: 'ls foo' `, epTaskRunName, namespace)), metav1.CreateOptions{}); err != nil { diff --git a/test/larger_results_sidecar_logs_test.go b/test/larger_results_sidecar_logs_test.go index 3108334b0b3..7b3d12ede03 100644 --- a/test/larger_results_sidecar_logs_test.go +++ b/test/larger_results_sidecar_logs_test.go @@ -169,7 +169,7 @@ spec: - name: result2 steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee $(results.result1.path); echo -n "%s"| tee $(results.result2.path); @@ -181,7 +181,7 @@ spec: steps: - name: step1 onError: continue - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee $(results.result2.path); # trigger an error @@ -206,7 +206,7 @@ spec: - name: large-result steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "$(params.param1)">> $(results.large-result.path); echo -n "$(params.param2)">> $(results.large-result.path); @@ -218,7 +218,7 @@ spec: - name: result2 steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee $(results.result1.path); echo -n "%s"| tee $(results.result2.path); @@ -248,7 +248,7 @@ spec: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee $(results.result1.path); echo -n "%s"| tee $(results.result2.path); @@ -262,7 +262,7 @@ spec: steps: - name: step1 onError: continue - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee $(results.result2.path); # trigger an error @@ -288,7 +288,7 @@ spec: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "$(params.param1)">> $(results.large-result.path); echo -n "$(params.param2)">> $(results.large-result.path); @@ -302,7 +302,7 @@ spec: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee $(results.result1.path); echo -n "%s"| tee $(results.result2.path); @@ -323,7 +323,7 @@ status: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee $(results.result1.path); echo -n "%s"| tee $(results.result2.path); @@ -336,7 +336,7 @@ status: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 onError: continue script: | echo -n "%s"| tee $(results.result2.path); @@ -363,7 +363,7 @@ status: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "$(params.param1)">> $(results.large-result.path); echo -n "$(params.param2)">> $(results.large-result.path); @@ -377,7 +377,7 @@ status: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee $(results.result1.path); echo -n "%s"| tee $(results.result2.path); @@ -405,7 +405,7 @@ spec: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee $(results.result1.path); echo -n "%s"| tee $(results.result2.path); @@ -423,7 +423,7 @@ status: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee /tekton/results/result1; echo -n "%s"| tee /tekton/results/result2; @@ -454,7 +454,7 @@ spec: steps: - name: step1 onError: continue - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee $(results.result2.path); # trigger an error @@ -476,7 +476,7 @@ status: steps: - name: step1 onError: continue - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee /tekton/results/result2; # trigger an error @@ -518,7 +518,7 @@ spec: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "$(params.param1)">> $(results.large-result.path); echo -n "$(params.param2)">> $(results.large-result.path); @@ -541,7 +541,7 @@ status: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s">> /tekton/results/large-result; echo -n "%s">> /tekton/results/large-result; @@ -568,7 +568,7 @@ spec: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee $(results.result1.path); echo -n "%s"| tee $(results.result2.path); @@ -588,7 +588,7 @@ status: type: string steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n "%s"| tee /tekton/results/result1; echo -n "%s"| tee /tekton/results/result2; diff --git a/test/matrix_test.go b/test/matrix_test.go index 2c3e0c99e33..1ca5e450316 100644 --- a/test/matrix_test.go +++ b/test/matrix_test.go @@ -70,7 +70,7 @@ spec: default: "" steps: - name: echo - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo "$(params.GOARCH) and $(params.version)" `, namespace)) @@ -85,7 +85,7 @@ spec: type: array steps: - name: produce-a-list-of-results - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n "[\"linux/amd64\",\"linux/ppc64le\"]" | tee $(results.GOARCHs.path) @@ -101,7 +101,7 @@ spec: type: array steps: - name: produce-a-list-of-versions - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | #!/usr/bin/env bash echo -n "[\"go1.17\",\"go1.18.1\"]" | tee $(results.versions.path) @@ -403,7 +403,7 @@ spec: - name: exit-code steps: - name: echo - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | exit "$(params.exit-code)" `, namespace)) diff --git a/test/per_feature_flags_test.go b/test/per_feature_flags_test.go index aa22312e11c..d47f1c12254 100644 --- a/test/per_feature_flags_test.go +++ b/test/per_feature_flags_test.go @@ -152,9 +152,9 @@ spec: results: - name: result steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: 'echo $(params["text"])' - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 # Sleep for N seconds so that we can check that tasks that # should be run in parallel have overlap. script: | @@ -280,7 +280,7 @@ spec: params: - name: param1 steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: 'echo $(params.param1);exit 0' `, helpers.ObjectNameForTest(t))) diff --git a/test/pipelinefinally_test.go b/test/pipelinefinally_test.go index 170ff47d4e1..4b75dbf3466 100644 --- a/test/pipelinefinally_test.go +++ b/test/pipelinefinally_test.go @@ -696,7 +696,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: 'exit 0' `, helpers.ObjectNameForTest(t), namespace)) } @@ -709,7 +709,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: 'exit 1' `, helpers.ObjectNameForTest(t), namespace)) } @@ -722,7 +722,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: 'sleep 5; exit 0' `, helpers.ObjectNameForTest(t), namespace)) } @@ -735,7 +735,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: 'exit 0' params: - name: dagtask1-status @@ -753,7 +753,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: 'echo -n "Hello" > $(results.result.path)' results: - name: result @@ -768,7 +768,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: 'sleep 5; echo -n "Hello" > $(results.result.path)' results: - name: result @@ -783,7 +783,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: 'exit 0' params: - name: %s diff --git a/test/pipelinerun_test.go b/test/pipelinerun_test.go index f786f04b601..ee7a436301d 100644 --- a/test/pipelinerun_test.go +++ b/test/pipelinerun_test.go @@ -68,7 +68,7 @@ spec: - name: HELLO default: "Hi!" steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: | #!/usr/bin/env bash echo "$(params.HELLO)" @@ -512,7 +512,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 command: ['/bin/bash'] args: ['-c', 'echo hello, world'] `, taskName, namespace)), metav1.CreateOptions{}); err != nil { @@ -582,10 +582,10 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 name: write-data-task-0-step-0 script: echo stuff | tee $(results.result-stuff.path) - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 name: write-data-task-0-step-1 script: echo other | tee $(results.result-other.path) results: @@ -600,10 +600,10 @@ spec: params: - name: check-stuff steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 name: read-from-task-0 script: echo $(params.check-stuff) - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 name: write-data-task-1 script: echo | tee $(results.result-something.path) results: @@ -620,7 +620,7 @@ spec: - script: echo $(params.check-other) image: docker.io/library/busybox name: read-from-task-0 - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 name: write-data-task-1 script: echo something | tee $(results.result-else.path) results: @@ -637,7 +637,7 @@ spec: - name: workspacepath-else value: $(tasks.create-file.results.result-else) steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: echo params.workspacepath-something `, helpers.ObjectNameForTest(t), namespace)), } @@ -971,7 +971,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 command: ['/bin/bash'] args: ['-c', 'echo hello, world'] `, taskName, namespace)), metav1.CreateOptions{}); err != nil { @@ -1007,7 +1007,7 @@ spec: - name: abc steps: - name: update-sa - image: docker.io/library/bash:latest + image: docker.io/library/bash:5.2.26 script: | echo 'test' > $(results.abc.path) exit 1 diff --git a/test/resolvers_test.go b/test/resolvers_test.go index 7e16382f800..e66e8fa26be 100644 --- a/test/resolvers_test.go +++ b/test/resolvers_test.go @@ -588,7 +588,7 @@ spec: - name: token type: string steps: - - image: docker.io/alpine/curl + - image: docker.io/alpine/curl:8.8.0 script: | #!/bin/ash curl -X POST "http://gitea_admin:%s@%s:3000/api/v1/admin/users" -H "accept: application/json" -H "Content-Type: application/json" -d '%s' diff --git a/test/retry_test.go b/test/retry_test.go index 4d3195e10ce..54e49f73020 100644 --- a/test/retry_test.go +++ b/test/retry_test.go @@ -55,7 +55,7 @@ spec: retries: %d taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: exit 1 `, pipelineRunName, numRetries)), metav1.CreateOptions{}); err != nil { t.Fatalf("Failed to create PipelineRun %q: %v", pipelineRunName, err) diff --git a/test/serviceaccount_test.go b/test/serviceaccount_test.go index 41e730ea10d..f5743ca9833 100644 --- a/test/serviceaccount_test.go +++ b/test/serviceaccount_test.go @@ -123,17 +123,17 @@ spec: - name: task1 taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: echo task1 - name: task2 taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: echo task2 - name: task3 taskSpec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: echo task3 `, helpers.ObjectNameForTest(t), namespace)) if _, err := c.V1PipelineClient.Create(ctx, pipeline, metav1.CreateOptions{}); err != nil { @@ -242,7 +242,7 @@ spec: taskSpec: metadata: {} steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: echo task1 `, helpers.ObjectNameForTest(t), namespace)) if _, err := c.V1PipelineClient.Create(ctx, pipeline, metav1.CreateOptions{}); err != nil { diff --git a/test/start_time_test.go b/test/start_time_test.go index dc4370dd05c..b4c3d00e0b9 100644 --- a/test/start_time_test.go +++ b/test/start_time_test.go @@ -56,15 +56,15 @@ metadata: spec: taskSpec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: sleep 2 - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: sleep 2 - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: sleep 2 - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: sleep 2 - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: sleep 2 `, helpers.ObjectNameForTest(t), namespace)), metav1.CreateOptions{}) if err != nil { diff --git a/test/status_test.go b/test/status_test.go index 15ad0293e7c..09d908cb002 100644 --- a/test/status_test.go +++ b/test/status_test.go @@ -234,7 +234,7 @@ spec: - name: HELLO default: "hello world!" steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 script: | #!/usr/bin/env bash echo "$(params.HELLO)" diff --git a/test/stepaction_results_test.go b/test/stepaction_results_test.go index b49bf4720cf..0c397fd77c5 100644 --- a/test/stepaction_results_test.go +++ b/test/stepaction_results_test.go @@ -123,7 +123,7 @@ spec: results: - name: result1 type: string - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n step-action >> $(step.results.result1.path) `, namespace)) @@ -139,7 +139,7 @@ spec: taskSpec: steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n inlined-step >> $(step.results.result1.path) results: @@ -167,7 +167,7 @@ spec: taskSpec: steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo -n inlined-step >> $(step.results.result1.path) results: @@ -192,14 +192,14 @@ status: taskSpec: steps: - name: step1 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 results: - name: result1 type: string script: | echo -n inlined-step >> /tekton/steps/step-step1/results/result1 - name: step2 - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 results: - name: result1 type: string diff --git a/test/task_results_from_failed_tasks_test.go b/test/task_results_from_failed_tasks_test.go index 91270856f59..12aa0b587a8 100644 --- a/test/task_results_from_failed_tasks_test.go +++ b/test/task_results_from_failed_tasks_test.go @@ -63,7 +63,7 @@ spec: params: - name: param1 steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: 'exit 0' - name: finaltask2 params: @@ -73,7 +73,7 @@ spec: params: - name: param1 steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 script: exit 0`, helpers.ObjectNameForTest(t))) if _, err := c.V1beta1PipelineRunClient.Create(ctx, pipelineRun, metav1.CreateOptions{}); err != nil { diff --git a/test/taskrun_test.go b/test/taskrun_test.go index 12f8e6ce136..aa5283c3e30 100644 --- a/test/taskrun_test.go +++ b/test/taskrun_test.go @@ -61,13 +61,13 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'echo hello'] - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'exit 1'] - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'sleep 30s'] `, helpers.ObjectNameForTest(t), namespace)) @@ -512,7 +512,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'exit 1'] volumeMounts: diff --git a/test/tektonbundles_test.go b/test/tektonbundles_test.go index 7a6439d1422..d5ba4953362 100644 --- a/test/tektonbundles_test.go +++ b/test/tektonbundles_test.go @@ -74,7 +74,7 @@ metadata: spec: steps: - name: hello - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: 'echo Hello' `, taskName, namespace)) diff --git a/test/timeout_test.go b/test/timeout_test.go index 9f5bd2d1b56..f081addb5a8 100644 --- a/test/timeout_test.go +++ b/test/timeout_test.go @@ -57,7 +57,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'sleep 10'] `, helpers.ObjectNameForTest(t), namespace)) @@ -277,7 +277,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'sleep 3000'] `, helpers.ObjectNameForTest(t), namespace)) @@ -333,7 +333,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'sleep 1s'] `, helpers.ObjectNameForTest(t), namespace)) @@ -343,7 +343,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'sleep 10s'] `, helpers.ObjectNameForTest(t), namespace)) @@ -454,7 +454,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'sleep 30'] `, helpers.ObjectNameForTest(t), namespace)) @@ -469,7 +469,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/busybox + - image: docker.io/library/busybox:1.36 command: ['/bin/sh'] args: ['-c', 'sleep 1'] `, helpers.ObjectNameForTest(t), namespace)) diff --git a/test/upgrade/simpleResources.yaml b/test/upgrade/simpleResources.yaml index 2fd95d13069..c37222ee07d 100644 --- a/test/upgrade/simpleResources.yaml +++ b/test/upgrade/simpleResources.yaml @@ -10,18 +10,18 @@ spec: default: "response" steps: - name: echo-param - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo "$(params.rsp)" - name: check-workspace - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | if [ "$(workspaces.workspace.bound)" == "true" ]; then echo "Workspace provided" fi sidecars: - name: server - image: docker.io/library/alpine:3.12.0 + image: docker.io/library/alpine:3.20.1 command: ['/bin/bash'] workingDir: /foo script: echo server @@ -44,7 +44,7 @@ spec: type: string default: "1" steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 name: check-workspace script: | if [ "$(workspaces.workspace.bound)" == "true" ]; then diff --git a/test/upgrade_test.go b/test/upgrade_test.go index d04f1870bb6..cf3b231f45e 100644 --- a/test/upgrade_test.go +++ b/test/upgrade_test.go @@ -52,11 +52,11 @@ spec: default: "response" steps: - name: echo-param - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | echo "$(params.rsp)" - name: check-workspace - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | if [ "$(workspaces.taskWorkspace.bound)" == "true" ]; then echo "Workspace provided" @@ -128,12 +128,12 @@ status: status: "True" taskSpec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 name: echo-param script: | echo "response" - name: check-workspace - image: docker.io/library/alpine + image: docker.io/library/alpine:3.20.1 script: | if [ "true" == "true" ]; then echo "Workspace provided" diff --git a/test/workingdir_test.go b/test/workingdir_test.go index b632d34d188..452755690fe 100644 --- a/test/workingdir_test.go +++ b/test/workingdir_test.go @@ -51,7 +51,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 workingDir: /workspace/HELLOMOTO args: ['-c', 'echo YES'] `, wdTaskName, namespace)) @@ -124,7 +124,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/ubuntu + - image: docker.io/library/ubuntu:24.04 workingDir: /HELLOMOTO args: ['-c', 'echo YES'] `, wdTaskName, namespace)) diff --git a/test/workspace_test.go b/test/workspace_test.go index c3bf0731503..10615279c83 100644 --- a/test/workspace_test.go +++ b/test/workspace_test.go @@ -51,7 +51,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: 'echo foo > /workspace/test/file' workspaces: - name: test @@ -129,7 +129,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: 'cat /workspace/test/file' workspaces: - name: test @@ -199,7 +199,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 script: 'cat /workspace/test/file' workspaces: - name: test @@ -268,7 +268,7 @@ metadata: namespace: %s spec: steps: - - image: docker.io/library/alpine + - image: docker.io/library/alpine:3.20.1 name: foo command: ['echo'] args: ['$(workspaces.test.volume)']