-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: generalize container tool usage in Makefile template #6932
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
base: master
Are you sure you want to change the base?
feat: generalize container tool usage in Makefile template #6932
Conversation
9c416f9
to
66a2529
Compare
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.
Hi @rhuss
Thank you for your contribution 🥇
I think that is OK because matches with the scaffold of kubebuilder: https://github.com/kubernetes-sigs/kubebuilder/blob/master/testdata/project-v4/Makefile
However, you need to run make install
and make generate
locally to ensure that those files are properly updated in the testdata.
Signed-off-by: Roland Huß <rhuss@redhat.com>
Signed-off-by: Roland Huß <rhuss@redhat.com>
9566ad4
to
1a11e7c
Compare
Thanks! Regenerated makefiles now. |
Signed-off-by: Roland Huß <rhuss@redhat.com>
df2d9c6
to
1228903
Compare
For non-go Makefiles the $CONTAINER_TOOL needs to be included in the fragment, vor go Makefiles it comes from kubebuilder. Adapted the template accordingly. |
Description of the change:
This PR generalizes the container tool usage in the bundle build target to respect the
CONTAINER_TOOL
variable. The change replaces the hardcodeddocker
command with$(CONTAINER_TOOL)
in thebundle-build
target of the Makefile template, making it consistent with other container-related targets in the operator-sdk.Motivation for the change:
Currently, the bundle build target hardcodes the use of
docker
as the container tool, which is inconsistent with other parts of the operator-sdk that respect theCONTAINER_TOOL
variable. This change:Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments
(seechangelog/fragments/00-template.yaml
)website/content/en/docs