cert-manager/hack
Ashley Davis 7ea4496dcb
Gracefully handle 404s when fetching old CRDs
If we're in the middle of a cert-manager release we'll have a git tag
created for that release, but won't have a GitHub release created yet.
That means that an attempt to download old CRDs for our versionchecker
test will fail for that version, with a 404 error.

An alternative approach would be to use the GitHub API to query for
existing non-draft releases - but that introduces a new point of failure
whereby we can easily hit a rate limit, or else introduces the need for
a GitHub API token.

The GitHub API also has the issue that it doesn't present every release
in one API call, which complicates fetching releases using curl and uses
even more rate-limit capacity.

The approach here is simple; we ignore tags for which the release 404s,
download manifests for which the release gives a 200, and bubble up any
other errors.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-03-30 15:16:17 +01:00
..
bin Merge pull request #4485 from munnerz/m1-support 2021-10-01 14:03:35 +01:00
boilerplate
build Merge pull request #4958 from irbekrm/tsig_provider 2022-03-22 12:18:51 +00:00
containers make: speed up 'docker build' with separate dir contexts 2022-02-25 16:38:53 +01:00
extractcrd Add targets for unit and integration tests in make 2022-02-17 14:48:57 +00:00
util add scripts for sha256 sum calculations 2021-12-15 09:54:15 +00:00
artifact-metadata.template.json Add a makefile flow for building artifacts 2021-12-15 09:54:15 +00:00
BUILD.bazel Add targets for unit and integration tests in make 2022-02-17 14:48:57 +00:00
concat-yaml.sh Add a makefile flow for building artifacts 2021-12-15 09:54:15 +00:00
fetch-old-crd.sh Gracefully handle 404s when fetching old CRDs 2022-03-30 15:16:17 +01:00
latest-base-images.sh Add a makefile flow for building artifacts 2021-12-15 09:54:15 +00:00
latest-kind-images.sh Uses upstream kind image with kube 1.23 2021-12-22 15:38:45 +00:00
sha256-of-plugin-tar.sh rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
test-securitycontext-deprecation.sh
update-all.sh
update-bazel.sh
update-codegen.sh rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
update-crds.sh Test conversion code using sample CRDs and remove conversion configuration from cert-manager CRDs 2021-12-14 17:33:22 +00:00
update-deps-licenses.sh Add a comment about staticcheck script 2021-08-23 08:58:20 +01:00
update-deps.sh Add a comment about staticcheck script 2021-08-23 08:58:20 +01:00
update-gofmt.sh
verify_boilerplate.py match upstream boilerplate verification for files w/ go:build 2022-01-06 14:57:21 +00:00
verify-bazel.sh rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
verify-chart-version.sh bump chart-testing image version to v3.5.0 2022-01-10 18:02:25 +00:00
verify-codegen.sh
verify-crds.sh rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
verify-deps-licenses.sh
verify-deps.sh
verify-errexit.sh add verify-errexit target to ci presubmits 2022-03-05 16:37:26 +00:00
verify-gofmt.sh
verify-goimports.sh minor verify-goimports tweak + document future improvements 2022-03-05 16:37:26 +00:00
verify-staticcheck.sh rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00
verify-upgrade.sh rename all uses of github.com/jetstack/cert-manager 2022-02-02 09:08:31 +00:00