Skip to content

Allow helm chart verification in both bazel + make#4723

Merged
jetstack-bot merged 2 commits intocert-manager:masterfrom
SgtCoDFish:verifychart
Jan 10, 2022
Merged

Allow helm chart verification in both bazel + make#4723
jetstack-bot merged 2 commits intocert-manager:masterfrom
SgtCoDFish:verifychart

Conversation

@SgtCoDFish
Copy link
Copy Markdown
Member

This slightly modifies our existing helm chart verification script to accept the location of a tarball containing the chart we're verifying.

That in turn allows us to more generally use the script for both validating the chart we build using make and the chart we build using bazel.

It also bumps the version of the docker image we use for verifying to the latest version, whose release notes are here. Verification succeeds for both the make and bazel versions of the chart when run locally using v3.5.0.

Important: make verify_chart is the command called for chart verification in our presubmits.

(NB: I actually suspect we can remove the docker image now and use a locally-downloaded tool, but we can save that for another PR. See this comment on our presubmits for more info about why we use docker here)

/kind feature

NONE

This slightly modifies our existing helm chart verification script to
accept the location of a tarball containing the chart we're verifying.

That in turn allows us to more generally use the script for both
validating the chart we build using make and the chart we build using
bazel.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
@jetstack-bot jetstack-bot added release-note-none Denotes a PR that doesn't merit a release note. kind/feature Categorizes issue or PR as related to a new feature. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 10, 2022
@jetstack-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SgtCoDFish

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jetstack-bot jetstack-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 10, 2022
Comment on lines +8 to +10
.PHONY: verify-chart
verify-chart: bin/cert-manager-$(RELEASE_VERSION).tgz
./hack/verify-chart-version.sh $<
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Probably unrelated to your change: I noticed many "in the future" lines:

$ make -f make/Makefile verify-chart
...
Linting chart 'bin/cert-manager-v1.7.0-alpha.0-67-g72027ce62.tgz' using internal dir 'deploy/charts/cert-manager'
cert-manager/Chart.yaml
tar: cert-manager/Chart.yaml: time stamp 2022-01-10 20:10:55 is 0.29450188 s in the future
cert-manager/values.yaml
tar: cert-manager/values.yaml: time stamp 2022-01-10 20:10:55 is 0.294457475 s in the future
cert-manager/templates/NOTES.txt
tar: cert-manager/templates/NOTES.txt: time stamp 2022-01-10 20:10:55 is 0.294428667 s in the future
cert-manager/templates/_helpers.tpl
tar: cert-manager/templates/_helpers.tpl: time stamp 2022-01-10 20:10:55 is 0.294409669 s in the future
cert-manager/templates/cainjector-deployment.yaml

I guess that's something that isn't to be worried about.

Copy link
Copy Markdown
Member Author

@SgtCoDFish SgtCoDFish Jan 11, 2022

Choose a reason for hiding this comment

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

The verification always runs in a docker container and I believe messages like this are related to docker. Longer term I'd like to remove that dependency on docker for doing this verification 👌

@maelvls
Copy link
Copy Markdown
Member

maelvls commented Jan 10, 2022

I tested both ways (bazel and make -f make/Makefile) locally and it worked. Thanks!

/lgtm

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 10, 2022
@jetstack-bot jetstack-bot merged commit 20c08e6 into cert-manager:master Jan 10, 2022
@jetstack-bot jetstack-bot added this to the v1.7 milestone Jan 10, 2022
@SgtCoDFish SgtCoDFish mentioned this pull request Jan 11, 2022
30 tasks
@SgtCoDFish SgtCoDFish deleted the verifychart branch May 10, 2022 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants