Skip to content

Commit a32cc8a

Browse files
committed
Use tini-git image for the resolvers deployment
And make sure the entrypoint (command) is tini. Signed-off-by: Vincent Demeester <[email protected]>
1 parent 85152e4 commit a32cc8a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.ko.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
baseImageOverrides:
2-
github.com/tektoncd/pipeline/cmd/resolvers: cgr.dev/chainguard/git@sha256:566235a8ef752f37d285042ee05fc37dbb04293e50f116a231984080fb835693
2+
github.com/tektoncd/pipeline/cmd/resolvers: ghcr.io/tektoncd/plumbing/tini-git@sha256:3d56865f83236872b0986c6c0716f5de56a1ca8eb3a86f37a46ce6202a6d4a66

config/resolvers/resolvers-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ spec:
7272
containers:
7373
- name: controller
7474
image: ko://github.com/tektoncd/pipeline/cmd/resolvers
75+
command:
76+
- /sbin/tini
77+
- --
78+
- /ko-app/resolvers
79+
args: []
7580
resources:
7681
requests:
7782
cpu: 100m
@@ -120,6 +125,7 @@ spec:
120125
allowPrivilegeEscalation: false
121126
readOnlyRootFilesystem: true
122127
runAsNonRoot: true
128+
runAsUser: 65532
123129
capabilities:
124130
drop:
125131
- "ALL"

tekton/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ spec:
130130
$(params.package)/cmd/entrypoint: ${COMBINED_BASE_IMAGE}
131131
$(params.package)/cmd/nop: ${COMBINED_BASE_IMAGE}
132132
$(params.package)/cmd/workingdirinit: ${COMBINED_BASE_IMAGE}
133-
$(params.package)/cmd/resolvers: cgr.dev/chainguard/git@sha256:566235a8ef752f37d285042ee05fc37dbb04293e50f116a231984080fb835693
133+
$(params.package)/cmd/resolvers: ghcr.io/tektoncd/plumbing/tini-git@sha256:3d56865f83236872b0986c6c0716f5de56a1ca8eb3a86f37a46ce6202a6d4a66
134134
EOF
135135
136136
cat /workspace/.ko.yaml

0 commit comments

Comments
 (0)