Skip to content

fix: add makefile check - #2863

Open
sven-urbanski-freiheit-com wants to merge 1 commit into
mainfrom
su-SRX-ISPEFN-make-check
Open

fix: add makefile check#2863
sven-urbanski-freiheit-com wants to merge 1 commit into
mainfrom
su-SRX-ISPEFN-make-check

Conversation

@sven-urbanski-freiheit-com

Copy link
Copy Markdown
Contributor

in order to verify that IMAGE_TAG_KUBERPULT is set when running helm tests

Ref: SRX-ISPEFN

in order to verify that IMAGE_TAG_KUBERPULT is set when running helm tests

Ref: SRX-ISPEFN
@sven-urbanski-freiheit-com
sven-urbanski-freiheit-com requested a review from a team as a code owner April 13, 2026 15:06
Comment thread charts/kuberpult/Makefile

test-helm: $(TGZ_FILE) Chart.yaml
check-precondition:
@if [ -z "$(IMAGE_TAG_KUBERPULT)" ]; then echo "IMAGE_TAG_KUBERPULT not set, exiting"; exit 1; fi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why and when would the IMAGE_TAG_KUBERPULT be empty? Can we fix the root cause of this issue?
If this happens in the CI builds, we do not want empty IMAGE_TAG_KUBERPULT, otherwise, the builds will be failing, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI sets it, and it works there.
I added this check so that we get a quicker and clearer error when running locally. Locally we have to set the tag manually.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For local, is it possible to leverage the existing make version target to get IMAGE_TAG_KUBERPULT? Manual configuration seems a bit unnecessarily complex.

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.

2 participants