-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update all the tools and get make bundle-test
working in GitHub Actions
#104
Conversation
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -25,17 +25,18 @@ help: ## Display this help | |||
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[0-9a-zA-Z_-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST) | |||
|
|||
OLM_PACKAGE_NAME ?= cert-manager | |||
IMG_BASE ?= gcr.io/jetstack-richard/cert-manager | |||
IMG_BASE_DEFAULT := ttl.sh/$(shell uuidgen)/cert-manager | |||
IMG_BASE ?= $(IMG_BASE_DEFAULT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed IMG_BASE_DEFAULT
(set using :=
syntax) so that IMG_BASE
remains constant across all the rules in the Makefile.
Otherwise uuidgen
is executed every time the variable is used.
Makefile
Outdated
${cmctl}: | ||
mkdir -p $(dir $@) | ||
curl -fsSL ${url} | tar --directory $(dir $@) -xzf - cmctl | ||
mv $(dir $@)/cmctl $@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Install cmctl for access to the cmctl check api
feature.
# | ||
# Also works around a bug in `cmctl check api`, where it will return success if | ||
# the CRDs are installed but the webhook has not been configured. See | ||
# https://github.com/cert-manager/cert-manager/issues/6721 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# https://github.com/cert-manager/cert-manager/issues/6721 | ||
# | ||
# Use process substitution instead of pipe, otherwise kubectl get --watch may hang. See | ||
# https://stackoverflow.com/a/53382807 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Allow bundle-test to build and test the bundle sources that are committed, rather than attempting to regenerate them every time. Allows bundle-test to run in GitHub Actions and test exactly what bundle sources are checked in Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
> image to be preloaded into the Kubernetes clusters. | ||
> See: | ||
> - https://github.com/cert-manager/cert-manager/pull/6387 | ||
> - https://github.com/cert-manager/cert-manager/pull/6391 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make bundle-test
working againmake bundle-test
working in GitHub Actions
I upgraded all the tools in the Makefile and made some changes to get
make bundle-test
working again.And I've set up GitHub Actions to run
make bundle-test
for every PR.This should give some additional assurance that the committed bundle sources are usable.
Testing