Enrich grafana-controller-manager pod labels #619
Labels
enhancement
New feature or request
good first issue
Good for newcomers
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Is your feature request related to a problem? Please describe.
I want to get operator pods filtering by labels, however the only label that is available is
control-plane: controller-manager
which could lead to confusion if another operator uses this same label.# I'd like to get only grafana-operator pod $ oc get pods -l control-plane=controller-manager NAME READY STATUS RESTARTS AGE airflow-on-k8s-operator-controller-manager-7468c9b786-btc7g 1/1 Running 0 17h grafana-operator-controller-manager-6496c7d568-dpmlj 2/2 Running 1 (18h ago) 18h $ oc get pod grafana-operator-controller-manager-6496c7d568-dpmlj --show-labels NAME READY STATUS RESTARTS AGE LABELS grafana-operator-controller-manager-6496c7d568-dpmlj 2/2 Running 1 (18h ago) 18h control-plane=controller-manager,pod-template-hash=6496c7d568
Describe the solution you'd like
Add more labels to the operator deployment following k8s best practices https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels. For example:
The text was updated successfully, but these errors were encountered: