Skip to content

Commit e2c86db

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 d504890 commit e2c86db

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
@@ -64,6 +64,11 @@ spec:
6464
containers:
6565
- name: controller
6666
image: ko://github.com/tektoncd/pipeline/cmd/resolvers
67+
command:
68+
- /sbin/tini
69+
- --
70+
args:
71+
- /ko-app/resolvers
6772
resources:
6873
requests:
6974
cpu: 100m
@@ -113,6 +118,7 @@ spec:
113118
allowPrivilegeEscalation: false
114119
readOnlyRootFilesystem: true
115120
runAsNonRoot: true
121+
runAsUser: 65532
116122
capabilities:
117123
drop:
118124
- "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)