Skip to content

Allow pv controller to recycle pvs, watch recycler pod events #11731

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

Merged
merged 1 commit into from
Nov 2, 2016

Conversation

wongma7
Copy link

@wongma7 wongma7 commented Nov 2, 2016

Needed due to new recycling behavior by #11259

fixes https://bugzilla.redhat.com/show_bug.cgi?id=1390879

@jsafrane

@@ -577,6 +577,11 @@ func init() {
Verbs: sets.NewString("get", "create", "delete"),
Resources: sets.NewString("pods"),
},
// RecycleVolumeByWatchingPodUntilCompletion
{
Verbs: sets.NewString("watch"),
Copy link
Contributor

Choose a reason for hiding this comment

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

always need list as well, right? what behavior is being driven by watching events?

Copy link
Contributor

Choose a reason for hiding this comment

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

also, the linked PR looks like it adds event recording... does this not need write permission to events?

Copy link
Author

Choose a reason for hiding this comment

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

OK, I will add list as well. Seems to work without it because it's just watching recycler pod events in order to forward them to the PV being recycled. The actual check for whether the recycler has finished is still done by watching the recycler pod.

Yeah it needs write permissions, it already had them.

@liggitt
Copy link
Contributor

liggitt commented Nov 2, 2016

LGTM [merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Nov 2, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11003/) (Image: devenv-rhel7_5305)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 808302a

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 808302a

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11003/) (Base Commit: 2c40b4c)

@openshift-bot openshift-bot merged commit 75ed7e1 into openshift:master Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants