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

Handle cleanup of individual origin authz objects #15223

Merged
merged 1 commit into from
Jul 17, 2017
Merged

Handle cleanup of individual origin authz objects #15223

merged 1 commit into from
Jul 17, 2017

Conversation

liggitt
Copy link
Contributor

@liggitt liggitt commented Jul 15, 2017

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1468629

update handler for container objects wasn't correctly processing removal of old nested objects

@liggitt
Copy link
Contributor Author

liggitt commented Jul 15, 2017

@deads2k PTAL

@liggitt
Copy link
Contributor Author

liggitt commented Jul 15, 2017

[test]

@liggitt
Copy link
Contributor Author

liggitt commented Jul 15, 2017

[severity:blocker]

@liggitt liggitt added this to the 3.6.0 milestone Jul 15, 2017
@enj
Copy link
Contributor

enj commented Jul 15, 2017

@liggitt is this related to #15077?

@liggitt
Copy link
Contributor Author

liggitt commented Jul 15, 2017

Yes

for _, originObj := range originContainerObj.Roles {
keys := sets.NewString()
for _, originObj := range old.(*authorizationapi.ClusterPolicy).Roles {
c.originIndexer.Delete(originObj)
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like this would put our lister into a bad state that could be observed by the syncFunction, resulting in bad behavior as we repeatedly delete and recreate roles.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm... have to compute the delta manually. I hate virtual resources.

@liggitt
Copy link
Contributor Author

liggitt commented Jul 17, 2017

fixed to avoid flutter on objects that are not removed

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 1a09bcf

@deads2k
Copy link
Contributor

deads2k commented Jul 17, 2017

lgtm [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 1a09bcf

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/3200/) (Base Commit: 8693402) (PR Branch Commit: 1a09bcf)

@openshift-bot
Copy link
Contributor

openshift-bot commented Jul 17, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1295/) (Base Commit: 271fb1c) (PR Branch Commit: 1a09bcf) (Extended Tests: blocker) (Image: devenv-rhel7_6448)

@openshift-bot openshift-bot merged commit 6c3acd2 into openshift:master Jul 17, 2017
@liggitt liggitt deleted the rbac-controller-cleanup branch July 19, 2017 00:12
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.

4 participants