-
Notifications
You must be signed in to change notification settings - Fork 500
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
Support TidbMonitor Ingress #2314
Conversation
pkg/controller/generic_control.go
Outdated
existingIngress.Annotations = map[string]string{} | ||
} | ||
for k, v := range desiredIngress.Annotations { | ||
desiredIngress.Annotations[k] = v |
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.
existingIngress
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.
updated.
Co-Authored-By: Yecheng Fu <cofyc.jackson@gmail.com>
func (mm *MonitorManager) syncPrometheusIngress(monitor *v1alpha1.TidbMonitor) error { | ||
if monitor.Spec.Prometheus.Ingress == nil { | ||
return mm.removeIngressIfExist(monitor, prometheusName(monitor)) | ||
} |
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.
should we check monitor.Spec.Prometheus
too like grafana?
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.
We don't have to check as Prometheus
is a non-nil in TidbMonitorSpec
Co-Authored-By: Yecheng Fu <cofyc.jackson@gmail.com>
Co-Authored-By: Yecheng Fu <cofyc.jackson@gmail.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
/merge |
/run-all-tests |
cherry pick to release-1.1 in PR #2320 |
What problem does this PR solve?
Support TidbMonitor Ingress
Close #2276
Related changes
Does this PR introduce a user-facing change?: