Skip to content
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

Refactor Makefile #1432

Merged
merged 1 commit into from
Aug 24, 2023
Merged

Refactor Makefile #1432

merged 1 commit into from
Aug 24, 2023

Conversation

Zerpet
Copy link
Collaborator

@Zerpet Zerpet commented Aug 22, 2023

Summary Of Changes

Refactor makefile. Main change: stop checking for variables that are not needed in most targets.

Additional Context

Some variables were mandatory for every target, even tho those were not
used at all in most targets. For example, building the operator binary
does not require information about the registry, yet, variables with
information registry were checked and failed if not present.

After this change, the variables are only checked in the targets
relevant to those variables. For example, docker-push now checks that
registry and operator image are set.

It is no longer required to have all variables defined. The targets that
make use of the variables will check and fail if variables are not set,
with a relevant error message as of what target requires them.

@Zerpet Zerpet self-assigned this Aug 22, 2023
@Zerpet Zerpet force-pushed the refactor-makefile branch 2 times, most recently from 778aa1e to 0ad50a6 Compare August 24, 2023 11:47
Some variables were mandatory for every target, even tho those were not
used at all in most targets. For example, building the operator binary
does not require information about the registry, yet, variables with
information registry were checked and failed if not present.

After this change, the variables are only checked in the targets
relevant to those variables. For example, docker-push now checks that
registry and operator image are set.

It is no longer required to have all variables defined. The targets that
make use of the variables will check and fail if variables are not set,
with a relevant error message as of what target requires them.

Signed-off-by: Aitor Pérez Cedres <[email protected]>
@Zerpet Zerpet force-pushed the refactor-makefile branch from 0ad50a6 to edcafed Compare August 24, 2023 12:10
@Zerpet Zerpet merged commit 8efd170 into main Aug 24, 2023
@Zerpet Zerpet deleted the refactor-makefile branch August 24, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants