Skip to content

Commit e0dd4ca

Browse files
author
Jeff McCormick
authored
bump kuttl version, handle a kuttl report file name change with the new version, and update kuttl user docs (#3369)
1 parent 3c00240 commit e0dd4ca

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
entries:
2+
- description: >
3+
The scorecard-test-kuttl image was updated to be based off the v0.5.1 version of kudobuilder/kuttl. This update fixes bugs found in kuttl v0.5.0.
4+
kind: "change"

images/scorecard-test-kuttl/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Base image
2-
FROM docker.io/kudobuilder/kuttl@sha256:970fcac6cf2eeba433a9e00eb9e24a7ecb0a313c2f1d0cc120cfd206210cd0ba
3-
#FROM kuttl:latest
2+
FROM docker.io/kudobuilder/kuttl@sha256:d23368441f313107954e80a3a5f2884f374bd5a4746193e304c7733f98d6915e
3+
#FROM kudobuilder/kuttl:latest
44

55
ENV TESTKUTTL=/usr/local/bin/scorecard-test-kuttl \
66
USER_UID=1001 \

images/scorecard-test-kuttl/cmd/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-report.json.
34+
// at /tmp/kuttl-test.json.
3535
func main() {
3636

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

website/content/en/docs/scorecard/kuttl-tests.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ operator-sdk alpha scorecard --namespace=mycustomns
145145
If you do not specify either of these flags, the default namespace
146146
and service account will be used by the scorecard to run test pods.
147147

148+
It is worth noting that scorecard-test-kuttl specifies a namespace
149+
to the kubectl-kuttl command which causes kuttl to not create a
150+
namespace for each test. This might impact your kuttl tests in
151+
that you might need to perform resource cleanup in your tests
152+
instead of depending upon namespace deletion to perform that cleanup.
153+
148154
[client_go]: https://github.com/kubernetes/client-go
149155
[kuttl]: https://kuttl.dev
150156
[kuttl_yaml]: https://kuttl.dev/docs/cli.html#examples

0 commit comments

Comments
 (0)