Skip to content

Update namespace finalizer to delete RoleBindingRestrictions - #13563

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
enj:enj/i/rbr_reaper/1435132
Mar 30, 2017
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
enj:enj/i/rbr_reaper/1435132

Conversation

@enj

@enj enj commented Mar 28, 2017

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

mfojtik commented Mar 29, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Evaluated for origin test up to 4e5f007

@enj

enj commented Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

@deads2k @liggitt I can has merge now?

@openshift-bot

Copy link
Copy Markdown
Contributor

@deads2k

deads2k commented Mar 30, 2017

Copy link
Copy Markdown
Contributor

lgtm [merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 4e5f007

@openshift-bot

openshift-bot commented Mar 30, 2017 •

Copy link
Copy Markdown
Contributor

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)

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