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

chore: add helm lint #2174

Merged
merged 1 commit into from Nov 28, 2023
Merged

chore: add helm lint #2174

merged 1 commit into from Nov 28, 2023

Conversation

misstick86
Copy link
Contributor

What type of PR is this?

chore: add helm lint at make lint stage.

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes 2057

@misstick86 misstick86 requested a review from a team as a code owner November 10, 2023 09:01
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (94fe41c) 64.19% compared to head (ff854a4) 64.51%.
Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2174      +/-   ##
==========================================
+ Coverage   64.19%   64.51%   +0.32%     
==========================================
  Files         107      111       +4     
  Lines       14924    15542     +618     
==========================================
+ Hits         9580    10027     +447     
- Misses       4768     4899     +131     
- Partials      576      616      +40     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -27,3 +27,7 @@ helm-install: helm-generate ## Install envoy gateway helm chart from OCI registr

helm-generate:
ImageRepository=${IMAGE} ImageTag=${TAG} envsubst < charts/gateway-helm/values.tmpl.yaml > ./charts/gateway-helm/values.yaml

lint: helm-lint
helm-lint: helm-generate
Copy link
Contributor

@arkodg arkodg Nov 10, 2023

Choose a reason for hiding this comment

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

looking at our CI
https://github.com/envoyproxy/gateway/blob/main/.github/workflows/build_and_test.yaml
it looks like helm-generate is directly called
should we just move the helm lint command as a step inside helm-generate so CI can catch this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

According to your recommendation, it is completely okay in ci. but I think helm lint should be a part of make lint Otherwise, if the user executes make lint separately, there will be nohelm lint step.

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah instead it will get triggered in helm generate step and fail that step which imo is fine.
If we include helm lint in lint we will end up calling helm generate multiple times

Copy link
Contributor Author

Choose a reason for hiding this comment

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

make sense. Already updated.

Signed-off-by: Song <uxiaosongsong@gmail.com>
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks !

@zirain zirain merged commit 77656f8 into envoyproxy:main Nov 28, 2023
18 checks passed
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.

Add helm lint to make lint
3 participants