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

Update namespace finalizer to delete RoleBindingRestrictions #13563

Merged
merged 1 commit into from
Mar 30, 2017

Conversation

enj
Copy link
Contributor

@enj enj commented Mar 28, 2017

@enj enj added this to the 1.5.0 milestone Mar 29, 2017
core.NewListAction(unversioned.GroupVersionResource{Group: "", Version: "v1", Resource: "deploymentconfig"}, "", kapi.ListOptions{}),
core.NewListAction(unversioned.GroupVersionResource{Group: "", Version: "v1", Resource: "egressnetworkpolicy"}, "", kapi.ListOptions{}),
namespaceFinalize,
core.NewListAction(unversioned.GroupVersionResource{Group: "", Version: "", Resource: "buildconfigs"}, testNamespace.Name, kapi.ListOptions{}),
Copy link
Contributor

Choose a reason for hiding this comment

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

why removing version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The fake clients only keep track of resource, they always pass the empty string for group and version.

Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't obvious. Is there a smaller change for a backport? Especially on a test for a controller we're going to remove post-rebase.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The old test did not check anything but the total number of actions (i.e. it was useless) so we have not lost anything.

Copy link
Contributor

Choose a reason for hiding this comment

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

The old test did not check anything but the total number of actions (i.e. it was useless) so we have not lost anything.

If it was useless, then you needed no changes to pass, right? I'd sort of expect to see some change here even if you didn't have to do all this to have equivalence.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, at the bare minimum you had to copy paste one of the NewListAction lines.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, at the bare minimum you had to copy paste one of the NewListAction lines.

For code that we know we're going to delete, that has a fixed point where we're going to delete it, that we know we're going to backport, I'm not sure I'd make the larger change.

@mfojtik have you reasoned through the test to see if it still works? I haven't, but if we really want to go to the effort and we know this change is ok then actually checking is clearly better.

@mfojtik
Copy link
Contributor

mfojtik commented Mar 29, 2017

lgtm

@enj enj modified the milestones: 1.6.0, 1.5.0 Mar 29, 2017
@enj enj force-pushed the enj/i/rbr_reaper/1435132 branch from 335d786 to 4e5f007 Compare March 29, 2017 20:25
@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 4e5f007

@enj
Copy link
Contributor Author

enj commented Mar 29, 2017

@deads2k @liggitt I can has merge now?

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/496/) (Base Commit: 2130ec6)

@deads2k
Copy link
Contributor

deads2k commented Mar 30, 2017

lgtm [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 4e5f007

@openshift-bot
Copy link
Contributor

openshift-bot commented Mar 30, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/220/) (Base Commit: 18962de) (Image: devenv-rhel7_6108)

@openshift-bot openshift-bot merged commit 475ae9a into openshift:master Mar 30, 2017
openshift-bot referenced this pull request Apr 4, 2017
…stream-release-1.5

Merged by openshift-bot
sjenning referenced this pull request in sjenning/origin Jan 5, 2018
…3563-upstream-ose-enterprise-3.5

Merged by openshift-bot
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.

5 participants