Skip to content

Commit

Permalink
Switch the image from docker.io to gcr mirror
Browse files Browse the repository at this point in the history
Docker hub reduced its rate limit to a 100 container pulls per hour.
This is very small and making our tests flaky. As a stop gap, we think
that changing to `mirror.gcr.io` will get us past the rate limit since
the image will be pushed from the artifact registry cache instead of
docker hub.
  • Loading branch information
chitrangpatel authored and tekton-robot committed Jul 24, 2024
1 parent c0b29b4 commit a9b204e
Show file tree
Hide file tree
Showing 152 changed files with 533 additions and 533 deletions.
4 changes: 2 additions & 2 deletions examples/v1/pipelineruns/4808-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
type: string
steps:
- name: print-result
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
env:
- name: PARAM_TO_PRINT
value: $(params.TO_PRINT)
Expand Down Expand Up @@ -39,7 +39,7 @@ spec:
description: A result string
steps:
- name: gen-result
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
env:
- name: PARAM_STRING_LENGTH
value: $(params.STRING_LENGTH)
Expand Down
6 changes: 3 additions & 3 deletions examples/v1/pipelineruns/6139-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
results:
- name: result-one
steps:
- image: docker.io/library/alpine:3.20.1
- image: mirror.gcr.io/alpine
script: |
#!/bin/sh
echo "Hello world!"
Expand All @@ -28,7 +28,7 @@ spec:
results:
- name: result-two
steps:
- image: docker.io/library/alpine:3.20.1
- image: mirror.gcr.io/alpine
script: |
#!/bin/sh
echo "Goodbye world!"
Expand All @@ -43,7 +43,7 @@ spec:
results:
- name: result-three
steps:
- image: docker.io/library/alpine:3.20.1
- image: mirror.gcr.io/alpine
script: |
#!/bin/sh
echo "Shutdown world!"
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/pipelineruns/alpha/param-enum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
enum: ["v1", "v2", "v3"]
steps:
- name: build
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
echo "$(params.message)"
---
Expand Down
4 changes: 2 additions & 2 deletions examples/v1/pipelineruns/alpha/pipelinerun-large-results.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
type: string
steps:
- name: step1
image: docker.io/library/alpine:3.20.1
image: mirror.gcr.io/alpine
script: |
# produce a result - a random string with 2,500 characters - result1
tr -dc A-Za-z0-9 </dev/urandom | head -c 2500 | tee $(results.result1.path);
Expand Down Expand Up @@ -63,7 +63,7 @@ spec:
type: string
steps:
- name: step1
image: docker.io/library/alpine:3.20.1
image: mirror.gcr.io/alpine
args: [
"$(params.param3[*])"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
description: The workspace to create the readme file in
steps:
- name: write-new-stuff
image: docker.io/library/ubuntu
image: mirror.gcr.io/ubuntu
script: 'touch $(workspaces.source.path)/README.md'
- name: check-file
params:
Expand All @@ -47,7 +47,7 @@ spec:
description: indicates whether the file exists or is missing
steps:
- name: check-file
image: docker.io/library/alpine:3.20.1
image: mirror.gcr.io/alpine
script: |
if test -f $(workspaces.source.path)/$(params.path); then
printf yes | tee $(results.exists.path)
Expand All @@ -60,23 +60,23 @@ spec:
taskSpec:
steps:
- name: echo
image: docker.io/library/ubuntu
image: mirror.gcr.io/ubuntu
script: 'echo file exists'
- name: task-should-be-skipped-1
when:
- cel: "'$(tasks.check-file.results.exists)'=='missing'" # when expression using task result, evaluates to false
taskSpec:
steps:
- name: echo
image: docker.io/library/ubuntu
image: mirror.gcr.io/ubuntu
script: exit 1
- name: task-should-be-skipped-2 # when expression using parameter, evaluates to false
when:
- cel: "'$(params.path)'!='README.md'"
taskSpec:
steps:
- name: echo
image: docker.io/library/ubuntu
image: mirror.gcr.io/ubuntu
script: exit 1
- name: task-should-be-skipped-3 # task with when expression and run after
runAfter:
Expand All @@ -86,7 +86,7 @@ spec:
taskSpec:
steps:
- name: echo
image: docker.io/library/ubuntu
image: mirror.gcr.io/ubuntu
script: exit 1
finally:
- name: finally-task-should-be-skipped-1 # when expression using execution status, evaluates to false
Expand All @@ -95,39 +95,39 @@ spec:
taskSpec:
steps:
- name: echo
image: docker.io/library/ubuntu
image: mirror.gcr.io/ubuntu
script: exit 1
- name: finally-task-should-be-skipped-2 # when expression using task result, evaluates to false
when:
- cel: "'$(tasks.check-file.results.exists)'=='missing'"
taskSpec:
steps:
- name: echo
image: docker.io/library/ubuntu
image: mirror.gcr.io/ubuntu
script: exit 1
- name: finally-task-should-be-skipped-3 # when expression using parameter, evaluates to false
when:
- cel: "'$(params.path)'!='README.md'"
taskSpec:
steps:
- name: echo
image: docker.io/library/ubuntu
image: mirror.gcr.io/ubuntu
script: exit 1
- name: finally-task-should-be-skipped-4 # when expression using tasks execution status, evaluates to false
when:
- cel: "'$(tasks.status)'=='Failure'"
taskSpec:
steps:
- name: echo
image: docker.io/library/ubuntu
image: mirror.gcr.io/ubuntu
script: exit 1
- name: finally-task-should-be-skipped-5 # when expression using tasks execution status, evaluates to false
when:
- cel: "'$(tasks.status)'=='Succeeded'"
taskSpec:
steps:
- name: echo
image: docker.io/library/ubuntu
image: mirror.gcr.io/ubuntu
script: exit 1
- name: finally-task-should-be-executed # when expression using execution status, tasks execution status, param, and results
when:
Expand All @@ -138,7 +138,7 @@ spec:
taskSpec:
steps:
- name: echo
image: docker.io/library/ubuntu
image: mirror.gcr.io/ubuntu
script: 'echo finally done'
params:
- name: path
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/pipelineruns/alpha/stepaction-params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
key1: "step-action default key1"
key2: "step-action default key2"
key3: "step-action default key3"
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
args: [
"echo",
"$(params.array-param[*])",
Expand Down
4 changes: 2 additions & 2 deletions examples/v1/pipelineruns/beta/7392-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
default: []
steps:
- name: step1
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
args:
- --images
- $(params.arrayVal1[*])
Expand All @@ -20,7 +20,7 @@ spec:
echo $arg
done
- name: step2
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
#!/usr/bin/env bash
echo -n '[]' | tee $(results.resultArray.path)
Expand Down
8 changes: 4 additions & 4 deletions examples/v1/pipelineruns/beta/ignore-task-error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
taskSpec:
steps:
- name: write
image: docker.io/library/alpine:3.20.1
image: mirror.gcr.io/alpine
script: |
#!/usr/bin/env sh
echo "this is a failing task"
Expand All @@ -28,7 +28,7 @@ spec:
- name: param1
steps:
- name: write
image: docker.io/library/alpine
image: mirror.gcr.io/alpine
script: |
#!/usr/bin/env sh
echo "this is a failing task if param1 is set bar"
Expand All @@ -42,7 +42,7 @@ spec:
taskSpec:
steps:
- name: write
image: docker.io/library/alpine:3.20.1
image: mirror.gcr.io/alpine
script: |
#!/usr/bin/env sh
echo "this is a success task"
Expand All @@ -56,7 +56,7 @@ spec:
taskSpec:
steps:
- name: verify-task-reason
image: docker.io/library/alpine
image: mirror.gcr.io/alpine
script: |
#!/usr/bin/env sh
if [[ $(params.echo-continue-task-reason) != "FailureIgnored" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions examples/v1/pipelineruns/beta/isolated-workspaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
workspaces:
- name: creds
steps:
- image: docker.io/library/alpine:3.20.1
- image: mirror.gcr.io/alpine
script: |
if [ ! -d /creds ] ; then
echo "unable to access creds"
Expand All @@ -46,7 +46,7 @@ spec:
workspaces:
- name: creds
mountpath: /creds
- image: docker.io/library/alpine:3.20.1
- image: mirror.gcr.io/alpine
script: |
if [ -d /workspace/creds ] ; then
echo "this step should not be able to see creds"
Expand Down
4 changes: 2 additions & 2 deletions examples/v1/pipelineruns/beta/pipeline-emitting-results.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
description: The array results
steps:
- name: write-array
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
#!/usr/bin/env bash
echo -n "[\"1\",\"2\",\"3\"]" | tee $(results.array-results.path)
Expand All @@ -32,7 +32,7 @@ spec:
}
steps:
- name: write-array
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
#!/usr/bin/env bash
echo -n "{\"foo\":\"bar\",\"hello\":\"world\"}" | tee $(results.object-results.path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
description: The array results
steps:
- name: write-array
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
#!/usr/bin/env bash
image1="abc.dev/notsofamousimage/image"
Expand All @@ -34,7 +34,7 @@ spec:
taskSpec:
steps:
- name: say-hi
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
echo "hi"
- name: task3
Expand All @@ -50,7 +50,7 @@ spec:
taskSpec:
steps:
- name: say-hello
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
echo "hello"
- name: task4
Expand All @@ -62,7 +62,7 @@ spec:
taskSpec:
steps:
- name: say-hi
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
echo "hi"
- name: task5
Expand All @@ -74,15 +74,15 @@ spec:
taskSpec:
steps:
- name: do-not-execute
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
exit 1
finally:
- name: validate-tasks
taskSpec:
steps:
- name: validate-tasks-section
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
if [[ $(context.task2.status) != "Succeeded" ]]; then
echo "task2 should have been succeeded but instead has status - $(context.task2.status)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: url
steps:
- name: echo
image: docker.io/library/alpine:3.20.1
image: mirror.gcr.io/alpine
script: |
echo "Visit $(params.url) on $(params.platform) using $(params.browser)."
---
Expand All @@ -32,7 +32,7 @@ spec:
type: array
steps:
- name: produce-a-list-of-platforms
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
#!/usr/bin/env bash
echo -n "[\"linux\",\"mac\",\"windows\"]" | tee $(results.platforms.path)
Expand All @@ -44,12 +44,12 @@ spec:
- name: url
steps:
- name: produce-a-list-of-browsers
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
#!/usr/bin/env bash
echo -n "[\"chrome\",\"safari\",\"firefox\"]" | tee $(results.browsers.path)
- name: produce-url
image: docker.io/library/bash:5.2.26
image: mirror.gcr.io/bash
script: |
#!/usr/bin/env bash
echo -n "myfavoritesitedotcom" | tee $(results.url.path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
default: ""
steps:
- name: echo
image: docker.io/library/alpine:3.20.1
image: mirror.gcr.io/alpine
script: |
echo "$(params.platform) and $(params.browser)"
---
Expand Down
Loading

0 comments on commit a9b204e

Please sign in to comment.