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

feat: Add commonLabels to Deployments #3684

Merged

Conversation

wyattfry
Copy link
Contributor

@wyattfry wyattfry commented Nov 7, 2024

What this PR does / why we need it: This adds Kubernetes-recommended labels to the Deployment manifests. https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/

Which issue(s) this PR fixes: No corresponding issue

Special notes for your reviewer: The labels were present on the Pods but not on the Deployments themselves. I tried my best to add the labels in a way that is consistent with the precedent set by the existing code, but I've never worked on a generated chart like this, so I may have made some rookie mistakes. If there's a cleaner way I'm completely open to it.

@wyattfry wyattfry requested a review from a team as a code owner November 7, 2024 21:08
anlandu and others added 2 commits November 7, 2024 16:09
Signed-off-by: Anlan Du <[email protected]>
Co-authored-by: alex <[email protected]>
Co-authored-by: Sertaç Özercan <[email protected]>
Co-authored-by: Rita Zhang <[email protected]>
Signed-off-by: Wyatt Fry <[email protected]>
@wyattfry wyattfry changed the title Add commonLabels to Deployments feat: Add commonLabels to Deployments Nov 7, 2024
@wyattfry
Copy link
Contributor Author

wyattfry commented Nov 8, 2024

@JaydipGabani @maxsmythe @ritazh @abhipatnala Could I please have a review?

@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.56%. Comparing base (3350319) to head (a1bb0a0).
Report is 177 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (3350319) and HEAD (a1bb0a0). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (3350319) HEAD (a1bb0a0)
unittests 2 1
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3684      +/-   ##
==========================================
- Coverage   54.49%   47.56%   -6.93%     
==========================================
  Files         134      236     +102     
  Lines       12329    19786    +7457     
==========================================
+ Hits         6719     9412    +2693     
- Misses       5116     9488    +4372     
- Partials      494      886     +392     
Flag Coverage Δ
unittests 47.56% <ø> (-6.93%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Contributor

@JaydipGabani JaydipGabani left a comment

Choose a reason for hiding this comment

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

@wyattfry applologies for delay. LGTM. Thanks for the PR!

@ritazh ritazh merged commit 9f1555a into open-policy-agent:master Nov 13, 2024
2 checks passed
@JaydipGabani
Copy link
Contributor

@open-policy-agent/gatekeeper-maintainers PTAL

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.

6 participants