Skip to content

Commit aeba6ad

Browse files
Update kuttl to v0.15.0 in the scorecard-test-kuttl image (#6401)
Signed-off-by: Andreas Gerstmayr <[email protected]>
1 parent 0df210f commit aeba6ad

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# entries is a list of entries to include in
2+
# release notes and/or the migration guide
3+
entries:
4+
- description: >
5+
Update kuttl to v0.15.0 in the scorecard-test-kuttl image
6+
7+
# kind is one of:
8+
# - addition
9+
# - change
10+
# - deprecation
11+
# - removal
12+
# - bugfix
13+
kind: "change"
14+
15+
# Is this a breaking change?
16+
breaking: false

images/scorecard-test-kuttl/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ COPY . .
1818
RUN GOOS=linux GOARCH=$TARGETARCH make build/scorecard-test-kuttl
1919

2020
# Final image.
21-
#FROM kudobuilder/kuttl@sha256:924a709a1d2c6bede8815415ea5d5be640b506ec5aeaddc68acb443ae8ee7926
22-
FROM kudobuilder/kuttl:v0.12.1
21+
#FROM kudobuilder/kuttl@sha256:8d4dad161521450db95f88fe0e62487cc6587c5818df2a4e750fb9e54c082170
22+
FROM kudobuilder/kuttl:v0.15.0
2323

2424
ENV HOME=/opt/scorecard-test-kuttl \
2525
USER_NAME=scorecard-test-kuttl \
@@ -29,6 +29,8 @@ ENV HOME=/opt/scorecard-test-kuttl \
2929
RUN echo "${USER_NAME}:x:${USER_UID}:0:${USER_NAME} user:${HOME}:/sbin/nologin" >> /etc/passwd
3030

3131
WORKDIR ${HOME}
32+
# kuttl writes a kubeconfig file in the current working directory
33+
RUN chmod g+w "${HOME}"
3234

3335
COPY --from=builder /workspace/build/scorecard-test-kuttl /usr/local/bin/scorecard-test-kuttl
3436
COPY --from=builder /workspace/images/scorecard-test-kuttl/entrypoint /usr/local/bin/entrypoint

images/scorecard-test-kuttl/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ import (
3131
// scorecard v1alpha3.TestStatus json format.
3232
//
3333
// The kuttl output is expected to be produced by kubectl-kuttl
34-
// at /tmp/kuttl-test.json.
34+
// at /tmp/kuttl-report.json.
3535
func main() {
3636

37-
jsonFile, err := os.Open("/tmp/kuttl-test.json")
37+
jsonFile, err := os.Open("/tmp/kuttl-report.json")
3838
if err != nil {
3939
printErrorStatus(fmt.Errorf("could not open kuttl report %v", err))
4040
return

0 commit comments

Comments
 (0)