Skip to content
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

Merged
merged 10 commits into from
Apr 28, 2020
Merged

Support TidbMonitor Ingress #2314

merged 10 commits into from
Apr 28, 2020

Conversation

Yisaer
Copy link
Contributor

@Yisaer Yisaer commented Apr 28, 2020

What problem does this PR solve?

Support TidbMonitor Ingress

Close #2276

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Does this PR introduce a user-facing change?:

Support `TidbMonitor` to configure `Ingress`

existingIngress.Annotations = map[string]string{}
}
for k, v := range desiredIngress.Annotations {
desiredIngress.Annotations[k] = v
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

existingIngress

Copy link
Contributor Author

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))
}
Copy link
Contributor

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?

Copy link
Contributor Author

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>
Yisaer and others added 2 commits April 28, 2020 11:04
Co-Authored-By: Yecheng Fu <cofyc.jackson@gmail.com>
@Yisaer Yisaer requested a review from cofyc April 28, 2020 03:29
Copy link
Contributor

@DanielZhangQD DanielZhangQD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Yisaer
Copy link
Contributor Author

Yisaer commented Apr 28, 2020

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Apr 28, 2020

/run-all-tests

@sre-bot sre-bot merged commit 178ebb0 into pingcap:master Apr 28, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Apr 28, 2020

cherry pick to release-1.1 in PR #2320

sre-bot added a commit that referenced this pull request Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Ingress Configuration
4 participants