-
Notifications
You must be signed in to change notification settings - Fork 16
feat(helm): adding helm-diff target
#470
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: main
Are you sure you want to change the base?
Conversation
Signed-off-by: hjoshi123 <[email protected]>
|
[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 |
|
/cybr |
| @TMP_NEW=$$(mktemp -d); | ||
| @OUTPUT_DIR=$$(mktemp -d); | ||
|
|
||
| $(HELM) template cert-manager --repo "oci://$(helm_chart_image_registry)" --version "$(helm_chart_old_version)" > $${TMP_OLD}/old.yaml; |
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.
helm_chart_image_registry probably also needs to be defined.
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/hjoshi123/makefile-modules/blob/1dcfe9cc44ee5b1240b21962db3da06c64e1378a/modules/helm/helm.mk#L41 I think it is defined already here
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.
Is cert-manager the chart name? could you use a variable for that too?
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.
Oh right.. yes I can do that
|
I struggled a little with trying to run this PR from within cert-manager. I found that the # From the cert-manager project:
yq -i '(.targets["make/_shared"][] , .targets["make/_shared_new"][]) |= (.repo_ref = "refs/pull/470/head")' klone.yaml
make upgrade-klone$ make helm-diff
make: *** No rule to make target `helm-diff'. Stop.That's because we only import In trust-manager, I had the following: # From the trust-manager project:
$ yq -i '(.targets["make/_shared"][] , .targets["make/_shared_new"][]) |= (.repo_ref = "refs/pull/470/head")' klone.yaml
make upgrade-klone$ make helm-diff
make/_shared/helm///helm.mk:193: *** missing separator. Stop.Looks like this new target won't work in cert-manager until we are done with cert-manager/cert-manager#7718. But it will work for all of the other projects such as trust-manager, so I'm in favor of adding it once the above error is fixed. Great work! |
Motivation: cert-manager/cert-manager#8183
CyberArk tracker: VC-46541