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

Expose PVReclaimPolicy for TidbMonitor #2379

Merged
merged 10 commits into from May 9, 2020

Conversation

Yisaer
Copy link
Contributor

@Yisaer Yisaer commented May 6, 2020

What problem does this PR solve?

close #2329
Expose PVReclaimPolicy for TidbMonitor and e2e test for ensure it.

Does this PR introduce a user-facing change?:

Expose `PVReclaimPolicy` for `TidbMonitor` when storage is enabled.

@@ -95,6 +103,12 @@ func (mm *MonitorManager) Sync(monitor *v1alpha1.TidbMonitor) error {
return err
}
klog.V(4).Infof("tm[%s/%s]'s pvc synced", monitor.Namespace, monitor.Name)

// syncing all PVs managed by operator's reclaim policy to Retain
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to be Retain.

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.

@Yisaer Yisaer requested a review from DanielZhangQD May 7, 2020 09:20
Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>
@Yisaer Yisaer requested a review from DanielZhangQD May 9, 2020 03:10
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

Copy link
Contributor

@shuijing198799 shuijing198799 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 Yisaer merged commit 3736a30 into pingcap:master May 9, 2020
sre-bot pushed a commit to sre-bot/tidb-operator that referenced this pull request May 9, 2020
@sre-bot
Copy link
Contributor

sre-bot commented May 9, 2020

cherry pick to release-1.1 in PR #2412

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

monitor PVC will be deleted if TidbMonitor CR is deleted
4 participants