Skip to content

feat: Add commonLabels to Deployments#3684

Merged
ritazh merged 9 commits into
open-policy-agent:masterfrom
wyattfry:add-common-labels-on-deploys
Nov 13, 2024
Merged

feat: Add commonLabels to Deployments#3684
ritazh merged 9 commits into
open-policy-agent:masterfrom
wyattfry:add-common-labels-on-deploys

Conversation

@wyattfry
Copy link
Copy Markdown
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 <adu47249@gmail.com>
Co-authored-by: alex <8968914+acpana@users.noreply.github.com>
Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Co-authored-by: Rita Zhang <rita.z.zhang@gmail.com>
Signed-off-by: Wyatt Fry <wyattfry@gmail.com>
Signed-off-by: Wyatt Fry <wyattfry@gmail.com>
@wyattfry wyattfry force-pushed the add-common-labels-on-deploys branch from a2a2687 to 42611e7 Compare November 7, 2024 21:09
@wyattfry wyattfry changed the title Add commonLabels to Deployments feat: Add commonLabels to Deployments Nov 7, 2024
@wyattfry
Copy link
Copy Markdown
Contributor Author

wyattfry commented Nov 8, 2024

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

@codecov-commenter
Copy link
Copy Markdown

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
Copy Markdown
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
@JaydipGabani
Copy link
Copy Markdown
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