-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add make targets to generate release Kubernetes manifests #613
Conversation
5c8bc11
to
6e47879
Compare
Codecov Report
@@ Coverage Diff @@
## main #613 +/- ##
=======================================
Coverage 44.37% 44.37%
=======================================
Files 61 61
Lines 3491 3491
=======================================
Hits 1549 1549
Misses 1858 1858
Partials 84 84 Continue to review full report at Codecov.
|
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.
lgtm
6e47879
to
8e8f372
Compare
kube.mk
Outdated
$(RELEASE_DIR): | ||
mkdir -p $(RELEASE_DIR)/ | ||
|
||
REGISTRY ?= ghcr.io |
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.
should this be quay.io/tinkerbell
?
…rver and tink-controller Signed-off-by: Abhinav Pandey <[email protected]>
8e8f372
to
a1906ff
Compare
|
||
.PHONY: release | ||
release: clean-release | ||
$(MAKE) set-manager-manifest-image MANIFEST_IMG=$(REGISTRY)/$(TINK_SERVER_IMAGE_NAME) MANIFEST_TAG=$(TINK_CONTROLLER_IMAGE_TAG) |
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.
Hey @abhinavmpandey08 was this supposed to be TINK_CONTROLLER_IMAGE_TAG?
## Description #613 introduced a few unwanted bits and a typo. ## Why is this needed #613 did not use tools.go setup we have for using pinned go tools. I reworked it so it also didn't do recursive make as that is considered harmful and setup better dependencies so that we let make be better equipped to do the right thing. This way we avoid using make as a dumb command runner, which if not done can lead to racy/broken makefiles (see hook for example). I fixed a typo that would cause the manager to use tink-server image, likely to not work :D. In the process I noticed that we don't have `generate-manifests` hooked up to be run as part of ci to detect drift, so I added it as a dependency of `generated` as it should have been from the beginning. ## How Has This Been Tested? I ran make a bunch.
Description
This PR adds Makefile target
release
to generate Kubernetes manifests fortink-server
andtink-controller
Why is this needed
This is needed to generate the release manifests using
kustomize
How Has This Been Tested?
Ran
make release
and verified that the manifest gets generated properlyHow are existing users impacted? What migration steps/scripts do we need?
No user impact
Checklist:
I have: