Skip to content

Commit 7eff188

Browse files
committed
ci: Update Tekton to use image versions instead of sha256.
Signed-off-by: Paulo Vital <[email protected]>
1 parent 06a7cbf commit 7eff188

File tree

6 files changed

+29
-58
lines changed

6 files changed

+29
-58
lines changed

.tekton/.currency/currency-scheduled-eventlistener.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ spec:
4848
spec:
4949
containers:
5050
- name: http-request-to-el-svc
51-
# quay.io/curl/curl:8.11.0
52-
image: quay.io/curl/curl@sha256:b90c4281fe1a4c6cc2b6a665c531d448bba078d75ffa98187e7d7e530fca5209
51+
image: quay.io/curl/curl:latest
5352
imagePullPolicy: IfNotPresent
5453
args: ["curl", "-X", "POST", "--data", "{}", "el-python-currency-cron-listener.default.svc.cluster.local:8080"]
5554
restartPolicy: OnFailure

.tekton/.currency/currency-tasks.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ spec:
1111
mountPath: /workspace
1212
steps:
1313
- name: clone-repo
14-
# public.ecr.aws/docker/library/alpine:3.20.3
15-
image: public.ecr.aws/docker/library/alpine@sha256:029a752048e32e843bd6defe3841186fb8d19a28dae8ec287f433bb9d6d1ad85
14+
image: public.ecr.aws/docker/library/alpine:latest
1615
script: |
1716
#!/bin/sh
1817
echo "Installing git"
@@ -33,8 +32,7 @@ spec:
3332
mountPath: /workspace
3433
steps:
3534
- name: generate-currency-report
36-
# public.ecr.aws/docker/library/python:3.12.11-bookworm
37-
image: public.ecr.aws/docker/library/python@sha256:01b17a5e297dd60629347a17d7c27908fc2c049e81a8cea3d5a1141f38777b8f
35+
image: public.ecr.aws/docker/library/python:3.12-bookworm
3836
script: |
3937
#!/usr/bin/env bash
4038
cd /workspace/python-sensor/.tekton/.currency
@@ -63,8 +61,7 @@ spec:
6361
mountPath: /workspace
6462
steps:
6563
- name: upload-currency-report
66-
# public.ecr.aws/docker/library/alpine:3.20.3
67-
image: public.ecr.aws/docker/library/alpine@sha256:029a752048e32e843bd6defe3841186fb8d19a28dae8ec287f433bb9d6d1ad85
64+
image: public.ecr.aws/docker/library/alpine:latest
6865
env:
6966
- name: GH_ENTERPRISE_TOKEN
7067
valueFrom:

.tekton/github-set-status-task.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ spec:
1414
secretName: githubtoken
1515
steps:
1616
- name: set-status
17-
# quay.io/curl/curl:8.11.0
18-
image: quay.io/curl/curl@sha256:b90c4281fe1a4c6cc2b6a665c531d448bba078d75ffa98187e7d7e530fca5209
17+
image: quay.io/curl/curl:latest
1918
env:
2019
- name: SHA
2120
value: $(params.SHA)

.tekton/python-tracer-prepuller.yaml

Lines changed: 15 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,67 +14,51 @@ spec:
1414
# Configure an init container for each image you want to pull
1515
initContainers:
1616
- name: prepuller-git
17-
# public.ecr.aws/docker/library/alpine:3.20.3
18-
image: public.ecr.aws/docker/library/alpine@sha256:029a752048e32e843bd6defe3841186fb8d19a28dae8ec287f433bb9d6d1ad85
17+
image: public.ecr.aws/docker/library/alpine:latest
1918
command: ["sh", "-c", "'true'"]
2019
- name: prepuller-google-cloud-pubsub
21-
# quay.io/thekevjames/gcloud-pubsub-emulator:501.0.0
22-
image: quay.io/thekevjames/gcloud-pubsub-emulator@sha256:9bad1f28e6a3d6cd5f462c654c736faa4cf49732d9422ddb427ad30f3037c0ff
20+
image: quay.io/thekevjames/gcloud-pubsub-emulator:latest
2321
command: ["sh", "-c", "'true'"]
2422
- name: prepuller-cassandra
25-
# public.ecr.aws/docker/library/cassandra:3.11.16-jammy
26-
image: public.ecr.aws/docker/library/cassandra@sha256:b175d99b80f8108594d00c705288fdb3186b9fc07b30b4c292c3592cddb5f0b5
23+
image: public.ecr.aws/docker/library/cassandra:3.11.16-jammy
2724
command: ["sh", "-c", "'true'"]
2825
- name: prepuller-rabbitmq
29-
# public.ecr.aws/docker/library/rabbitmq:3.13.0
30-
image: public.ecr.aws/docker/library/rabbitmq@sha256:39de1a4fc6c72d12bd5dfa23e8576536fd1c0cc8418344cd5a51addfc9a1145d
26+
image: public.ecr.aws/docker/library/rabbitmq:3.13.0
3127
command: ["sh", "-c", "'true'"]
3228
- name: prepuller-redis
33-
# public.ecr.aws/docker/library/redis:7.2.4-bookworm
34-
image: public.ecr.aws/docker/library/redis@sha256:9341b6548cc35b64a6de0085555264336e2f570e17ecff20190bf62222f2bd64
29+
image: public.ecr.aws/docker/library/redis:7.2.4-bookworm
3530
command: ["sh", "-c", "'true'"]
3631
- name: prepuller-mongo
37-
# public.ecr.aws/docker/library/mongo:7.0.6
38-
image: public.ecr.aws/docker/library/mongo@sha256:3a023748ee30e915dd51642f1ef430c73c4e54937060054ca84c70417f510cc5
32+
image: public.ecr.aws/docker/library/mongo:7.0.6
3933
command: ["sh", "-c", "'true'"]
4034
- name: prepuller-mariadb
41-
# public.ecr.aws/docker/library/mariadb:11.3.2
42-
image: public.ecr.aws/docker/library/mariadb@sha256:a4a81ab6d190db84b67f286fd0511cdea619a24b63790b3db4fb69d263a5cd37
35+
image: public.ecr.aws/docker/library/mariadb:11.3.2
4336
command: ["sh", "-c", "'true'"]
4437
- name: prepuller-postgres
45-
# public.ecr.aws/docker/library/postgres:16.2-bookworm
46-
image: public.ecr.aws/docker/library/postgres@sha256:07572430dbcd821f9f978899c3ab3a727f5029be9298a41662e1b5404d5b73e0
38+
image: public.ecr.aws/docker/library/postgres:16.2-bookworm
4739
command: ["sh", "-c", "'true'"]
4840
- name: prepuller-kafka
49-
# public.ecr.aws/bitnami/kafka:3.9.0
50-
image: public.ecr.aws/docker/library/kafka@sha256:d2890d68f96b36da3c8413fa94294f018b2f95d87cf108cbf71eab510572d9be
41+
image: public.ecr.aws/bitnami/kafka:3.9.0
5142
command: ["sh", "-c", "'true'"]
5243
- name: prepuller-38
53-
# public.ecr.aws/docker/library/python:3.8.20-bookworm
54-
image: public.ecr.aws/docker/library/python@
44+
image: public.ecr.aws/docker/library/python:3.8.20-bookworm
5545
command: ["sh", "-c", "'true'"]
5646
- name: prepuller-39
57-
# public.ecr.aws/docker/library/python:3.9.23-bookworm
58-
image: public.ecr.aws/docker/library/python@sha256:4f77eeb4a6ab4364c601f1f4bc36f10945c0c42ef092f2704e7f99cd9170333a
47+
image: public.ecr.aws/docker/library/python:3.9.23-bookworm
5948
command: ["sh", "-c", "'true'"]
6049
- name: prepuller-310
61-
# public.ecr.aws/docker/library/python:3.10.18-bookworm
62-
image: public.ecr.aws/docker/library/python@sha256:6b942ef4c1315964c027925010da1957e540c7c103c0718e7673da807bbf206c
50+
image: public.ecr.aws/docker/library/python:3.10.18-bookworm
6351
command: ["sh", "-c", "'true'"]
6452
- name: prepuller-311
65-
# public.ecr.aws/docker/library/python:3.11.13-bookworm
66-
image: public.ecr.aws/docker/library/python@sha256:d53da2e965e9de4f1b5424544d7bd39f776ea9b1fc745335914045b1e6628c67
53+
image: public.ecr.aws/docker/library/python:3.11.13-bookworm
6754
command: ["sh", "-c", "'true'"]
6855
- name: prepuller-312
69-
# public.ecr.aws/docker/library/python:3.12.11-bookworm
70-
image: public.ecr.aws/docker/library/python@sha256:01b17a5e297dd60629347a17d7c27908fc2c049e81a8cea3d5a1141f38777b8f
56+
image: public.ecr.aws/docker/library/python:3.12.11-bookworm
7157
command: ["sh", "-c", "'true'"]
7258
- name: prepuller-313
73-
# public.ecr.aws/docker/library/python:3.13.4-bookworm
74-
image: public.ecr.aws/docker/library/python@sha256:8300f4e04ed367fafc5877b39dcf7a205532e295778f6fd20a08e1652b177d7b
59+
image: public.ecr.aws/docker/library/python:3.13.4-bookworm
7560
command: ["sh", "-c", "'true'"]
7661
- name: prepuller-314
77-
# public.ecr.aws/docker/library/python:3.14.0rc2-bookworm
7862
image: public.ecr.aws/docker/library/python:3.14.0rc2-bookworm
7963
command: ["sh", "-c", "'true'"]
8064

.tekton/scheduled-eventlistener.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ spec:
6161
spec:
6262
containers:
6363
- name: git
64-
# public.ecr.aws/docker/library/alpine:3.20.3
65-
image: public.ecr.aws/docker/library/alpine@sha256:029a752048e32e843bd6defe3841186fb8d19a28dae8ec287f433bb9d6d1ad85
64+
image: public.ecr.aws/docker/library/alpine:latest
6665
script: |
6766
#!/bin/sh
6867
echo "Installing git"

.tekton/task.yaml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ spec:
1212
mountPath: /workspace
1313
steps:
1414
- name: clone
15-
image: public.ecr.aws/docker/library/alpine:3.20.3
15+
image: public.ecr.aws/docker/library/alpine:latest
1616
script: |
1717
#!/bin/sh
1818
echo "Installing git"
@@ -167,8 +167,7 @@ metadata:
167167
spec:
168168
sidecars:
169169
- name: kafka
170-
# public.ecr.aws/bitnami/kafka:3.9.0
171-
image: public.ecr.aws/bitnami/kafka@sha256:d2890d68f96b36da3c8413fa94294f018b2f95d87cf108cbf71eab510572d9be
170+
image: public.ecr.aws/bitnami/kafka:3.9.0
172171
env:
173172
- name: KAFKA_CFG_NODE_ID
174173
value: "0"
@@ -208,8 +207,7 @@ metadata:
208207
spec:
209208
sidecars:
210209
- name: google-cloud-pubsub
211-
# quay.io/thekevjames/gcloud-pubsub-emulator
212-
image: quay.io/thekevjames/gcloud-pubsub-emulator@sha256:9bad1f28e6a3d6cd5f462c654c736faa4cf49732d9422ddb427ad30f3037c0ff
210+
image: quay.io/thekevjames/gcloud-pubsub-emulator:latest
213211
env:
214212
- name: PUBSUB_EMULATOR_HOST
215213
value: 0.0.0.0:8681
@@ -219,19 +217,16 @@ spec:
219217
- containerPort: 8681
220218
hostPort: 8681
221219
- name: mariadb
222-
# public.ecr.aws/docker/library/mariadb:11.3.2
223-
image: public.ecr.aws/docker/library/mariadb@sha256:a4a81ab6d190db84b67f286fd0511cdea619a24b63790b3db4fb69d263a5cd37
220+
image: public.ecr.aws/docker/library/mariadb:11.3.2
224221
env:
225222
- name: MYSQL_ROOT_PASSWORD # or MARIADB_ROOT_PASSWORD
226223
value: passw0rd
227224
- name: MYSQL_DATABASE # or MARIADB_DATABASE
228225
value: instana_test_db
229226
- name: mongo
230-
# public.ecr.aws/docker/library/mongo:7.0.6
231-
image: public.ecr.aws/docker/library/mongo@sha256:3a023748ee30e915dd51642f1ef430c73c4e54937060054ca84c70417f510cc5
227+
image: public.ecr.aws/docker/library/mongo:7.0.6
232228
- name: postgres
233-
# public.ecr.aws/docker/library/postgres:16.2-bookworm
234-
image: public.ecr.aws/docker/library/postgres@sha256:07572430dbcd821f9f978899c3ab3a727f5029be9298a41662e1b5404d5b73e0
229+
image: public.ecr.aws/docker/library/postgres:16.2-bookworm
235230
env:
236231
- name: POSTGRES_USER
237232
value: root
@@ -247,11 +242,9 @@ spec:
247242
- pg_isready --host 127.0.0.1 --port 5432 --dbname=${POSTGRES_DB}
248243
timeoutSeconds: 10
249244
- name: redis
250-
# public.ecr.aws/docker/library/redis:7.2.4-bookworm
251-
image: public.ecr.aws/docker/library/redis@sha256:9341b6548cc35b64a6de0085555264336e2f570e17ecff20190bf62222f2bd64
245+
image: public.ecr.aws/docker/library/redis:7.2.4-bookworm
252246
- name: rabbitmq
253-
# public.ecr.aws/docker/library/rabbitmq:3.13.0
254-
image: public.ecr.aws/docker/library/rabbitmq@sha256:39de1a4fc6c72d12bd5dfa23e8576536fd1c0cc8418344cd5a51addfc9a1145d
247+
image: public.ecr.aws/docker/library/rabbitmq:3.13.0
255248
params:
256249
- name: py-version
257250
type: string

0 commit comments

Comments
 (0)