CP-36332: Update docs to use new Kubernetes label selectors #620
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.
PR #606 code review identified that documentation contains outdated Kubernetes label selectors. The label system was refactored in CP-35429 (commit c7a0b6f) to follow Kubernetes recommended labels best practices, but documentation was not updated to reflect the new selector patterns.
Functional Change:
Before: Documentation examples used
app.kubernetes.io/component=servercombined withapp.kubernetes.io/name=cloudzero-agentto query agent resources, which no longer matches the actual labels on deployed resources.After: Documentation examples use
app.kubernetes.io/part-of=cloudzero-agentcombined withapp.kubernetes.io/name=server(or aggregator, webhook-server, etc.), which correctly matches the current label schema.Solution:
Label transformation pattern applied throughout:
app.kubernetes.io/component=server,app.kubernetes.io/name=cloudzero-agentbecameapp.kubernetes.io/part-of=cloudzero-agent,app.kubernetes.io/name=serverapp.kubernetes.io/name=kube-state-metrics(sub-chart, no part-of label)Validation:
app.kubernetes.io/component