Skip to content

Commit ebb8f3f

Browse files
authored
Merge pull request #1094 from kubernetes-sigs/master
Prepare v0.6.2
2 parents 5118ae5 + be832a1 commit ebb8f3f

File tree

65 files changed

+1565
-374
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1565
-374
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<!-- please add a :running: (`:running:`) to the title of this PR, and delete this line and similar ones -->
1+
<!-- please add a :seedling: (`:seedling:`) to the title of this PR, and delete this line and similar ones -->
22

33
<!-- What does this do, and why do we need it? -->

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<!-- please add a icon to the title of this PR (see VERSIONING.md), and delete this line and similar ones -->
2-
<!-- the icon will be either ⚠ (:warning:, major), ✨ (:sparkles, minor), 🐛 (:bug:, patch), 📖 (:book:, docs), or 🏃 (:running:, other) -->
2+
<!-- the icon will be either ⚠ (:warning:, major), ✨ (:sparkles, minor), 🐛 (:bug:, patch), 📖 (:book:, docs), or 🌱 (:seedling:, other) -->
33

44
<!-- What does this do, and why do we need it? -->

OWNERS_ALIASES

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ aliases:
1818
- gerred
1919
- shawn-hurley
2020
- joelanford
21+
- alvaroaleman
2122

2223
# folks who can review and LGTM any PRs in the repo (doesn't
2324
# include approvers & admins -- those count too via the OWNERS
2425
# file)
2526
controller-runtime-reviewers:
26-
- alvaroaleman
2727
- alenkacz
2828
- vincepri
2929
- alexeldeib
@@ -33,7 +33,6 @@ aliases:
3333
testing-integration-approvers:
3434
- apelisse
3535
- hoegaarden
36-
- totherme
3736

3837
# folks who may have context on ancient history,
3938
# but are no longer directly involved

VERSIONING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ a:
9191
- Non-breaking feature: :sparkles: (`:sparkles:`)
9292
- Patch fix: :bug: (`:bug:`)
9393
- Docs: :book: (`:book:`)
94-
- Infra/Tests/Other: :running: (`:running:`)
94+
- Infra/Tests/Other: :seedling: (`:seedling:`)
9595
- No release note: :ghost: (`:ghost:`)
9696

9797
Use :ghost: (no release note) only for the PRs that change or revert unreleased
@@ -156,7 +156,7 @@ after that.
156156

157157
3. Add a release for controller-runtime on GitHub, using those release
158158
notes, with a title of `vX.Y.Z`.
159-
159+
160160
4. Do a similar process for
161161
[controller-tools](https://github.com/kubernetes-sigs/controller-tools)
162162

@@ -210,10 +210,10 @@ converging on a ergonomic API.
210210

211211
- Users will intuitively see `List`, and use that in new projects, even
212212
if it's marked as deprecated.
213-
213+
214214
- Users who don't notice the deprecation may be confused as to the
215215
difference between `List` and `ListParametric`.
216-
216+
217217
- It's not immediately obvious in isolation (e.g. in surrounding code)
218218
why the method is called `ListParametric`, and may cause confusion
219219
when reading code that makes use of that method.
@@ -229,8 +229,8 @@ Development branches:
229229

230230
- don't win us much in terms of maintenance in the case of breaking
231231
changes (we still have to merge/manage multiple branches for development
232-
and stable)
233-
232+
and stable)
233+
234234
- can be confusing to contributors, who often expect master to have the
235235
latest changes.
236236

alias.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ var (
125125
// get any actual logging.
126126
Log = log.Log
127127

128+
// LoggerFromContext returns a logger with predefined values from a context.Context.
129+
//
130+
// This is meant to be used with the context supplied in a struct that satisfies the Reconciler interface.
131+
LoggerFromContext = log.FromContext
132+
128133
// SetLogger sets a concrete logging implementation for all deferred Loggers.
129134
SetLogger = log.SetLogger
130135
)

go.mod

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@ require (
2525
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
2626
gomodules.xyz/jsonpatch/v2 v2.0.1
2727
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
28-
k8s.io/api v0.18.4
29-
k8s.io/apiextensions-apiserver v0.18.4
30-
k8s.io/apimachinery v0.18.4
31-
k8s.io/client-go v0.18.4
28+
k8s.io/api v0.18.6
29+
k8s.io/apiextensions-apiserver v0.18.6
30+
k8s.io/apimachinery v0.18.6
31+
k8s.io/client-go v0.18.6
3232
k8s.io/utils v0.0.0-20200603063816-c1c6865ac451
3333
sigs.k8s.io/yaml v1.2.0
3434
)
35-
36-
replace github.com/evanphx/json-patch => github.com/evanphx/json-patch v0.0.0-20190815234213-e83c0a1c26c8

go.sum

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ github.com/emicklei/go-restful v2.9.5+incompatible h1:spTtZBk5DYEvbxMVutUuTyh1Ao
7373
github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
7474
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
7575
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
76-
github.com/evanphx/json-patch v0.0.0-20190815234213-e83c0a1c26c8 h1:DM7gHzQfHwIj+St8zaPOI6iQEPAxOwIkskvw6s9rDaM=
77-
github.com/evanphx/json-patch v0.0.0-20190815234213-e83c0a1c26c8/go.mod h1:pmLOTb3x90VhIKxsA9yeQG5yfOkkKnkk1h+Ql8NDYDw=
76+
github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
77+
github.com/evanphx/json-patch v4.5.0+incompatible h1:ouOWdg56aJriqS0huScTkVXPC5IcNrDCXZ6OoTAWu7M=
78+
github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
7879
github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
7980
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
8081
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
@@ -498,17 +499,17 @@ gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81
498499
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
499500
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
500501
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
501-
k8s.io/api v0.18.4 h1:8x49nBRxuXGUlDlwlWd3RMY1SayZrzFfxea3UZSkFw4=
502-
k8s.io/api v0.18.4/go.mod h1:lOIQAKYgai1+vz9J7YcDZwC26Z0zQewYOGWdyIPUUQ4=
503-
k8s.io/apiextensions-apiserver v0.18.4 h1:Y3HGERmS8t9u12YNUFoOISqefaoGRuTc43AYCLzWmWE=
504-
k8s.io/apiextensions-apiserver v0.18.4/go.mod h1:NYeyeYq4SIpFlPxSAB6jHPIdvu3hL0pc36wuRChybio=
505-
k8s.io/apimachinery v0.18.4 h1:ST2beySjhqwJoIFk6p7Hp5v5O0hYY6Gngq/gUYXTPIA=
506-
k8s.io/apimachinery v0.18.4/go.mod h1:OaXp26zu/5J7p0f92ASynJa1pZo06YlV9fG7BoWbCko=
507-
k8s.io/apiserver v0.18.4/go.mod h1:q+zoFct5ABNnYkGIaGQ3bcbUNdmPyOCoEBcg51LChY8=
508-
k8s.io/client-go v0.18.4 h1:un55V1Q/B3JO3A76eS0kUSywgGK/WR3BQ8fHQjNa6Zc=
509-
k8s.io/client-go v0.18.4/go.mod h1:f5sXwL4yAZRkAtzOxRWUhA/N8XzGCb+nPZI8PfobZ9g=
510-
k8s.io/code-generator v0.18.4/go.mod h1:TgNEVx9hCyPGpdtCWA34olQYLkh3ok9ar7XfSsr8b6c=
511-
k8s.io/component-base v0.18.4/go.mod h1:7jr/Ef5PGmKwQhyAz/pjByxJbC58mhKAhiaDu0vXfPk=
502+
k8s.io/api v0.18.6 h1:osqrAXbOQjkKIWDTjrqxWQ3w0GkKb1KA1XkUGHHYpeE=
503+
k8s.io/api v0.18.6/go.mod h1:eeyxr+cwCjMdLAmr2W3RyDI0VvTawSg/3RFFBEnmZGI=
504+
k8s.io/apiextensions-apiserver v0.18.6 h1:vDlk7cyFsDyfwn2rNAO2DbmUbvXy5yT5GE3rrqOzaMo=
505+
k8s.io/apiextensions-apiserver v0.18.6/go.mod h1:lv89S7fUysXjLZO7ke783xOwVTm6lKizADfvUM/SS/M=
506+
k8s.io/apimachinery v0.18.6 h1:RtFHnfGNfd1N0LeSrKCUznz5xtUP1elRGvHJbL3Ntag=
507+
k8s.io/apimachinery v0.18.6/go.mod h1:OaXp26zu/5J7p0f92ASynJa1pZo06YlV9fG7BoWbCko=
508+
k8s.io/apiserver v0.18.6/go.mod h1:Zt2XvTHuaZjBz6EFYzpp+X4hTmgWGy8AthNVnTdm3Wg=
509+
k8s.io/client-go v0.18.6 h1:I+oWqJbibLSGsZj8Xs8F0aWVXJVIoUHWaaJV3kUN/Zw=
510+
k8s.io/client-go v0.18.6/go.mod h1:/fwtGLjYMS1MaM5oi+eXhKwG+1UHidUEXRh6cNsdO0Q=
511+
k8s.io/code-generator v0.18.6/go.mod h1:TgNEVx9hCyPGpdtCWA34olQYLkh3ok9ar7XfSsr8b6c=
512+
k8s.io/component-base v0.18.6/go.mod h1:knSVsibPR5K6EW2XOjEHik6sdU5nCvKMrzMt2D4In14=
512513
k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
513514
k8s.io/gengo v0.0.0-20200114144118-36b2048a9120/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
514515
k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=

hack/check-everything.sh

Lines changed: 8 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -14,72 +14,22 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
set -e
17+
set -o errexit
18+
set -o nounset
19+
set -o pipefail
1820

1921
hack_dir=$(dirname ${BASH_SOURCE})
2022
source ${hack_dir}/common.sh
21-
22-
k8s_version=1.16.4
23-
goarch=amd64
24-
goos="unknown"
25-
26-
if [[ "$OSTYPE" == "linux-gnu" ]]; then
27-
goos="linux"
28-
elif [[ "$OSTYPE" == "darwin"* ]]; then
29-
goos="darwin"
30-
fi
31-
32-
if [[ "$goos" == "unknown" ]]; then
33-
echo "OS '$OSTYPE' not supported. Aborting." >&2
34-
exit 1
35-
fi
23+
source ${hack_dir}/setup-envtest.sh
3624

3725
tmp_root=/tmp
3826
kb_root_dir=$tmp_root/kubebuilder
3927

40-
# Skip fetching and untaring the tools by setting the SKIP_FETCH_TOOLS variable
41-
# in your environment to any value:
42-
#
43-
# $ SKIP_FETCH_TOOLS=1 ./check-everything.sh
44-
#
45-
# If you skip fetching tools, this script will use the tools already on your
46-
# machine, but rebuild the kubebuilder and kubebuilder-bin binaries.
47-
SKIP_FETCH_TOOLS=${SKIP_FETCH_TOOLS:-""}
48-
49-
# fetch k8s API gen tools and make it available under kb_root_dir/bin.
50-
function fetch_kb_tools {
51-
local dest_dir="${1}"
52-
53-
# use the pre-existing version in the temporary folder if it matches our k8s version
54-
if [[ -x "${dest_dir}/kubebuilder/bin/kube-apiserver" ]]; then
55-
version=$("${dest_dir}"/kubebuilder/bin/kube-apiserver --version)
56-
if [[ $version == *"${k8s_version}"* ]]; then
57-
header_text "Using cached kubebuilder-tools from ${dest_dir}"
58-
return 0
59-
fi
60-
fi
61-
62-
header_text "fetching tools (into '${dest_dir}')"
63-
kb_tools_archive_name="kubebuilder-tools-$k8s_version-$goos-$goarch.tar.gz"
64-
kb_tools_download_url="https://storage.googleapis.com/kubebuilder-tools/$kb_tools_archive_name"
65-
66-
kb_tools_archive_path="$tmp_root/$kb_tools_archive_name"
67-
if [ ! -f $kb_tools_archive_path ]; then
68-
curl -sL ${kb_tools_download_url} -o "$kb_tools_archive_path"
69-
fi
70-
71-
mkdir -p "${dest_dir}"
72-
tar -C "${dest_dir}" --strip-components=1 -zvxf "$kb_tools_archive_path"
73-
}
74-
75-
header_text "using tools"
76-
77-
if [ -z "$SKIP_FETCH_TOOLS" ]; then
78-
fetch_kb_tools "$kb_root_dir"
79-
fetch_kb_tools "${hack_dir}/../pkg/internal/testing/integration/assets"
80-
fi
28+
ENVTEST_K8S_VERSION=${ENVTEST_K8S_VERSION:-"1.16.4"}
8129

82-
setup_envs
30+
fetch_envtest_tools "$kb_root_dir"
31+
fetch_envtest_tools "${hack_dir}/../pkg/internal/testing/integration/assets"
32+
setup_envtest_env "$kb_root_dir"
8333

8434
${hack_dir}/verify.sh
8535
${hack_dir}/test-all.sh

hack/common.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,3 @@ fi
5151
function header_text {
5252
echo "$header$*$reset"
5353
}
54-
55-
function setup_envs {
56-
header_text "setting up env vars"
57-
58-
# Setup env vars
59-
if [[ -z "${KUBEBUILDER_ASSETS}" ]]; then
60-
export KUBEBUILDER_ASSETS=$kb_root_dir/bin
61-
fi
62-
}

hack/release/common.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ cr_minor_pattern=":sparkles:|$(printf "\xe2\x9c\xa8")"
66
cr_patch_pattern=":bug:|$(printf "\xf0\x9f\x90\x9b")"
77
cr_docs_pattern=":book:|$(printf "\xf0\x9f\x93\x96")"
88
cr_no_release_note_pattern=":ghost:|$(printf "\xf0\x9f\x91\xbb")"
9-
cr_other_pattern=":running:|$(printf "\xf0\x9f\x8f\x83")"
10-
cr_all_pattern="${cr_major_pattern}|${cr_minor_pattern}|${cr_patch_pattern}|${cr_docs_pattern}|${cr_other_pattern}"
9+
cr_other_pattern=":seedling:|$(printf "\xf0\x9f\x8f\x83")"
10+
cr_other_old_pattern=":running:|$(printf "\xf0\x9f\x8f\x83")"
11+
cr_all_pattern="${cr_major_pattern}|${cr_minor_pattern}|${cr_patch_pattern}|${cr_docs_pattern}|${cr_other_old_pattern}|${cr_other_pattern}"
1112

1213
# cr::symbol-type-raw turns :xyz: and the corresponding emoji
1314
# into one of "major", "minor", "patch", "docs", "other", or
@@ -32,6 +33,9 @@ cr::symbol-type-raw() {
3233
@(${cr_other_pattern})?('!'))
3334
echo "other"
3435
;;
36+
@(${cr_other_old_pattern})?('!'))
37+
echo "other"
38+
;;
3539
*)
3640
echo "unknown"
3741
;;

hack/setup-envtest.sh

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2020 The Kubernetes Authors.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -o errexit
18+
set -o pipefail
19+
20+
# Turn colors in this script off by setting the NO_COLOR variable in your
21+
# environment to any value:
22+
#
23+
# $ NO_COLOR=1 test.sh
24+
NO_COLOR=${NO_COLOR:-""}
25+
if [ -z "$NO_COLOR" ]; then
26+
header=$'\e[1;33m'
27+
reset=$'\e[0m'
28+
else
29+
header=''
30+
reset=''
31+
fi
32+
33+
function header_text {
34+
echo "$header$*$reset"
35+
}
36+
37+
function setup_envtest_env {
38+
header_text "setting up env vars"
39+
40+
# Setup env vars
41+
KUBEBUILDER_ASSETS=${KUBEBUILDER_ASSETS:-""}
42+
if [[ -z "${KUBEBUILDER_ASSETS}" ]]; then
43+
export KUBEBUILDER_ASSETS=$1/bin
44+
fi
45+
}
46+
47+
# fetch k8s API gen tools and make it available under envtest_root_dir/bin.
48+
#
49+
# Skip fetching and untaring the tools by setting the SKIP_FETCH_TOOLS variable
50+
# in your environment to any value:
51+
#
52+
# $ SKIP_FETCH_TOOLS=1 ./check-everything.sh
53+
#
54+
# If you skip fetching tools, this script will use the tools already on your
55+
# machine.
56+
function fetch_envtest_tools {
57+
SKIP_FETCH_TOOLS=${SKIP_FETCH_TOOLS:-""}
58+
if [ -n "$SKIP_FETCH_TOOLS" ]; then
59+
return 0
60+
fi
61+
62+
tmp_root=/tmp
63+
envtest_root_dir=$tmp_root/envtest
64+
65+
k8s_version="${ENVTEST_K8S_VERSION:-1.16.4}"
66+
goarch="$(go env GOARCH)"
67+
goos="$(go env GOOS)"
68+
69+
if [[ "$goos" != "linux" && "$goos" != "darwin" ]]; then
70+
echo "OS '$goos' not supported. Aborting." >&2
71+
return 1
72+
fi
73+
74+
local dest_dir="${1}"
75+
76+
# use the pre-existing version in the temporary folder if it matches our k8s version
77+
if [[ -x "${dest_dir}/bin/kube-apiserver" ]]; then
78+
version=$("${dest_dir}"/bin/kube-apiserver --version)
79+
if [[ $version == *"${k8s_version}"* ]]; then
80+
header_text "Using cached envtest tools from ${dest_dir}"
81+
return 0
82+
fi
83+
fi
84+
85+
header_text "fetching envtest tools@${k8s_version} (into '${dest_dir}')"
86+
envtest_tools_archive_name="kubebuilder-tools-$k8s_version-$goos-$goarch.tar.gz"
87+
envtest_tools_download_url="https://storage.googleapis.com/kubebuilder-tools/$envtest_tools_archive_name"
88+
89+
envtest_tools_archive_path="$tmp_root/$envtest_tools_archive_name"
90+
if [ ! -f $envtest_tools_archive_path ]; then
91+
curl -sL ${envtest_tools_download_url} -o "$envtest_tools_archive_path"
92+
fi
93+
94+
mkdir -p "${dest_dir}"
95+
tar -C "${dest_dir}" --strip-components=1 -zvxf "$envtest_tools_archive_path"
96+
}

hack/test-all.sh

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,10 @@ set -e
1818

1919
source $(dirname ${BASH_SOURCE})/common.sh
2020

21-
setup_envs
22-
2321
header_text "running go test"
2422

25-
# TODO(directxman12): enable the race detector once the LeaderElector race condition is resolved in client-go
26-
go test ${MOD_OPT} ./... -parallel 4
27-
28-
header_text "running coverage"
23+
go test -race ${MOD_OPT} ./...
2924

30-
# Verify no coverage regressions have been introduced. Remove the exception list from here
31-
# once the coverage has been brought back up
32-
if [[ ! $(go test ${MOD_OPT} ./pkg/... -coverprofile cover.out -parallel 4 | grep -v "coverage: 100.0% of statements" | grep "controller-runtime/pkg " | grep -v "controller-runtime/pkg \|controller-runtime/pkg/recorder \|pkg/cache\|pkg/client \|pkg/event \|pkg/client/config \|pkg/controller/controllertest \|pkg/reconcile/reconciletest \|pkg/test ") ]]; then
33-
echo "ok"
34-
else
35-
go test ${MOD_OPT} ./pkg/... -coverprofile cover.out -parallel 4 | grep -v "coverage: 100.0% of statements" | grep "controller-runtime/pkg " | grep -v "controller-runtime/pkg \|controller-runtime/pkg/recorder \|pkg/cache\|pkg/client \|pkg/event \|pkg/client/config \|pkg/controller/controllertest \|pkg/reconcile/reconciletest \|pkg/test "
36-
echo "missing test coverage"
37-
exit 1
25+
if [[ -n ${ARTIFACTS:-} ]]; then
26+
if grep -Rin '<failure type="Failure">' ${ARTIFACTS}/*; then exit 1; fi
3827
fi

pkg/builder/builder_suite_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ import (
3838

3939
func TestBuilder(t *testing.T) {
4040
RegisterFailHandler(Fail)
41-
RunSpecsWithDefaultAndCustomReporters(t, "application Suite", []Reporter{printer.NewlineReporter{}})
41+
suiteName := "application Suite"
42+
RunSpecsWithDefaultAndCustomReporters(t, suiteName, []Reporter{printer.NewlineReporter{}, printer.NewProwReporter(suiteName)})
4243
}
4344

4445
var testenv *envtest.Environment

0 commit comments

Comments
 (0)