-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[prometheus-blackbox-exporter] use well known label as namespace label selector #3217
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't see why this should be the default, breaking the chart for everyone not having this label.
Sorry i missed to give some context. |
@monotek this label is set by default on all namespaces since at least kubernetes 1.22 (c.f. https://v1-22.docs.kubernetes.io/docs/reference/labels-annotations-taints/#kubernetes-io-metadata-name) @PG2000 I would suggest you add a kubernetes version flag so the chart uses the old way prior to 1.22 and the new way after 1.22. Would that work for the both of you? |
I would just make the labels generical configurable, using the old labels as default. |
Signed-off-by: pg2000 <10741029+PG2000@users.noreply.github.com>
Signed-off-by: pg2000 <10741029+PG2000@users.noreply.github.com>
Signed-off-by: pg2000 <10741029+PG2000@users.noreply.github.com>
I did the mentioned label selector configurable. Just from my point of view: I didn't get why this should be backwards compatible for end of life k8s versions. From my point of view: |
Signed-off-by: pg2000 <10741029+PG2000@users.noreply.github.com>
Signed-off-by: pg2000 <10741029+PG2000@users.noreply.github.com>
@PG2000 can you bump the version? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. |
What this PR does / why we need it
Kubernetes uses a well known label for namespaces. (kubernetes.io/metadata.name=)
Would be great if the network policy can match this label then.
Which issue this PR fixes
none
Special notes for your reviewer
Checklist
[prometheus-couchdb-exporter]
)