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

policy server remove non standard labels #1038

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

flavio
Copy link
Member

@flavio flavio commented Mar 7, 2025

WARNING: do not merge

This PR builds on top of #1037 and it must be merged a couple of releases after 1.23 is out.

This PR removes the old non-standard labels used by Policy Server. In certain cases it replaces them using the recommended Kubernetes labels.

We cannot merge this PR right now because we could cause a downtime during a Kubewarden upgrade.

With the 1.23 release all the Policy Server workloads will have the old and the new labels set.
With the 1.24+ release, the Policy Server workloads will have only the new labels. The Policy Server Service will use only the new labels inside of its selector.
However, we don't know how quickly the new workloads (the only using only the new labels) will be rolled out by Kubernetes. At the same time, the kubewarden-controller will update the selectors of the Policy Server service. We must ensure the selector keeps working as expected while the new workloads are rolled out.

Use standard naming convention for our labels (use DNS name as part of
key). Also, remove non-standard labels when possible and just use the
common Kubernetes labels we are now using.

Signed-off-by: Flavio Castelli <[email protected]>
@flavio flavio force-pushed the policy-server-remove-non-standard-labels branch from e755c1f to cc9969f Compare March 7, 2025 17:21
Copy link

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.62%. Comparing base (7a06d20) to head (cc9969f).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1038      +/-   ##
==========================================
- Coverage   72.73%   72.62%   -0.12%     
==========================================
  Files          30       30              
  Lines        3778     3781       +3     
==========================================
- Hits         2748     2746       -2     
- Misses        873      877       +4     
- Partials      157      158       +1     
Flag Coverage Δ
integration-tests 58.57% <100.00%> (-0.11%) ⬇️
unit-tests 58.63% <ø> (+0.07%) ⬆️

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.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kravciak
Copy link
Contributor

Related issue #1052. This affects also policy-server service and deployment selectors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Blocked
Development

Successfully merging this pull request may close these issues.

4 participants