Make target for cleaning CRDs used for test

This commit is contained in:
Michael Bridgen 2020-08-03 17:53:07 +01:00
parent 6dea89456b
commit 9328b2c284
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ all: manager
# Running the tests requires the source.toolkit.fluxcd.io CRDs
test_deps: ${TEST_CRDS}/imagepolicies.yaml ${TEST_CRDS}/gitrepositories.yaml
clean_test_deps:
rm -r ${TEST_CRDS}
${TEST_CRDS}/gitrepositories.yaml:
mkdir -p ${TEST_CRDS}
curl -s https://raw.githubusercontent.com/fluxcd/source-controller/${TOOLKIT_VERSION}/config/crd/bases/source.toolkit.fluxcd.io_gitrepositories.yaml \