policy server remove non standard labels #1038
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.