Skip to content

Commit fec8051

Browse files
committed
Bump toolkit CRDs used
This also corrects a defect in the Makefile: if it can't fetch the CRDs successfully, it should fail. (Otherwise, it just write the 404 resopnse body to the expected-CRD file!) Signed-off-by: Michael Bridgen <[email protected]>
1 parent 5649927 commit fec8051

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CRD_OPTIONS ?= crd:crdVersions=v1
55

66
# Version of the Toolkit from which to get CRDs. Change this if you
77
# bump the go module version.
8-
TOOLKIT_VERSION:=v0.3.0
8+
TOOLKIT_VERSION:=v0.5.0
99

1010
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
1111
ifeq (,$(shell go env GOBIN))
@@ -26,12 +26,12 @@ clean_test_deps:
2626

2727
${TEST_CRDS}/gitrepositories.yaml:
2828
mkdir -p ${TEST_CRDS}
29-
curl -s https://raw.githubusercontent.com/fluxcd/source-controller/${TOOLKIT_VERSION}/config/crd/bases/source.toolkit.fluxcd.io_gitrepositories.yaml \
29+
curl -s --fail https://raw.githubusercontent.com/fluxcd/source-controller/${TOOLKIT_VERSION}/config/crd/bases/source.toolkit.fluxcd.io_gitrepositories.yaml \
3030
-o ${TEST_CRDS}/gitrepositories.yaml
3131

3232
${TEST_CRDS}/imagepolicies.yaml:
3333
mkdir -p ${TEST_CRDS}
34-
curl -s https://raw.githubusercontent.com/fluxcd/image-reflector-controller/main/config/crd/bases/image.toolkit.fluxcd.io_imagepolicies.yaml \
34+
curl -s --fail https://raw.githubusercontent.com/fluxcd/image-reflector-controller/main/config/crd/bases/image.toolkit.fluxcd.io_imagepolicies.yaml \
3535
-o ${TEST_CRDS}/imagepolicies.yaml
3636

3737
# Run tests

0 commit comments

Comments
 (0)