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

image: transform api groups to legacy resources in admission #13421

Merged
merged 1 commit into from
Mar 18, 2017

Conversation

mfojtik
Copy link
Contributor

@mfojtik mfojtik commented Mar 17, 2017

Ref: #13412

@mfojtik
Copy link
Contributor Author

mfojtik commented Mar 17, 2017

@smarterclayton i think I missed your comment :) this is the actual PR, can you please comment with the another hole you think this might expose?

@smarterclayton
Copy link
Contributor

Don't try transforming in the controller itself. Transform when admission is called. That preserves legacy behavior (user defines "builds") as well as prevents accidental slip ups (user only defines "builds.builds.openshift.io").

Have you reviewed all the other admission controllers for config that has resources in it?

@mfojtik
Copy link
Contributor Author

mfojtik commented Mar 17, 2017

@smarterclayton gotcha

@mfojtik
Copy link
Contributor Author

mfojtik commented Mar 17, 2017

@smarterclayton i briefly went trough other admission controller (origin) and unless I'm missing something, only image policy admission actually have list of resources it applies to. If that is true and we fix this, we should be safe, but perhaps another person should go trough them as well to be 100% confident ( @soltysh @enj ?)

@mfojtik mfojtik force-pushed the apigroups-followup branch from 9a9032f to 741030b Compare March 17, 2017 15:17
@mfojtik
Copy link
Contributor Author

mfojtik commented Mar 17, 2017

[test]

@smarterclayton PTAL

@mfojtik mfojtik force-pushed the apigroups-followup branch from 741030b to 4ee2145 Compare March 17, 2017 15:20
@mfojtik
Copy link
Contributor Author

mfojtik commented Mar 17, 2017

Flake: #13386

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 4ee2145

@openshift-bot
Copy link
Contributor

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

@smarterclayton
Copy link
Contributor

Lgtm [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 4ee2145

@openshift-bot
Copy link
Contributor

openshift-bot commented Mar 18, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/135/) (Base Commit: 52c9149) (Image: devenv-rhel7_6086)

@openshift-bot openshift-bot merged commit 7dff93e into openshift:master Mar 18, 2017
@mfojtik mfojtik deleted the apigroups-followup branch September 5, 2018 21:07
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