-
Notifications
You must be signed in to change notification settings - Fork 770
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
Release namespace for Prometheus Operator resources #967
Conversation
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
Signed-off-by: bennesp <bennesp@users.noreply.github.com>
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.
Thanks for this PR !
In order keep good readability, we try avoid having
{{- if x }}
field: value
{{- else }}
field: othervalue
{{- end }}
Would you please use a template or a ternary instead ?
You should also start with the test, on both objects. The tests should fail without your changes on the template.
Apologies, I got now that you were referring to the other template that the original author modified, will write tests also for that template |
Signed-off-by: bennesp <bennesp@users.noreply.github.com>
Signed-off-by: bennesp <bennesp@users.noreply.github.com>
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.
LGTM
No problem. Thanks for rebasing and updating the PR. It looks better now. |
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.
LGTM
What does this PR do?
Set namespace for ServiceMonitor and PrometheusRule resources to the release namespace if no namespace is set into the values file, like all others resources
Motivation
Closes #948 which seems to be stale
More
make test
and all the tests passed