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

Extend make verify to fully check charts/kueue/templates #1059

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

trasc
Copy link
Contributor

@trasc trasc commented Aug 16, 2023

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Extend make verify to fully check charts/kueue/templates

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Aug 16, 2023
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 16, 2023
@netlify
Copy link

netlify bot commented Aug 16, 2023

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
🔨 Latest commit ad5e282
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/64dca6f8128e890008c83932

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 16, 2023
@trasc
Copy link
Contributor Author

trasc commented Aug 16, 2023

/cc @tenzen-y
/cc @alculquicondor

charts/kueue/templates/rbac/role.yaml Show resolved Hide resolved
@@ -178,7 +178,7 @@ ci-lint: golangci-lint

.PHONY: verify
verify: gomod-verify vet ci-lint fmt-verify toc-verify manifests generate update-helm
git --no-pager diff --exit-code config/components apis charts/kueue/templates/crd client-go
git --no-pager diff --exit-code config/components apis charts/kueue/templates client-go
Copy link
Member

@tenzen-y tenzen-y Aug 16, 2023

Choose a reason for hiding this comment

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

Suggested change
git --no-pager diff --exit-code config/components apis charts/kueue/templates client-go
git --no-pager diff --exit-code config/components apis charts/kueue/templates/crd charts/kueue/templates/rbac client-go

Should we verify only crd and rbac since update-helm.sh syncs only those folders?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In my opinion no. The current way it's easier to follow, and if in the future other templates are auto updated are automatically updated we will not miss to update the check.

Copy link
Member

@tenzen-y tenzen-y Aug 16, 2023

Choose a reason for hiding this comment

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

I don't have strong objections. I was just concerned that it would get the error in this script even when we changed the helm templates, which requires manual changes.

Copy link
Member

Choose a reason for hiding this comment

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

if in the future other templates are auto updated are automatically updated we will not miss to update the check.

Anyway, It makes sense on this.

@tenzen-y
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 16, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tenzen-y, trasc

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 16, 2023
@k8s-ci-robot k8s-ci-robot merged commit a6a2e84 into kubernetes-sigs:main Aug 16, 2023
15 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v0.5 milestone Aug 16, 2023
@trasc trasc deleted the verify-charts-templates branch August 18, 2023 05:59
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants