image: transform api groups to legacy resources in admission#13421
image: transform api groups to legacy resources in admission#13421openshift-bot merged 1 commit intoopenshift:masterfrom
Conversation
|
@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? |
|
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? |
|
@smarterclayton gotcha |
|
@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 ?) |
9a9032f to
741030b
Compare
|
[test] @smarterclayton PTAL |
741030b to
4ee2145
Compare
|
Flake: #13386 [test] |
|
Evaluated for origin test up to 4ee2145 |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/295/) (Base Commit: e6a87ad) |
|
Lgtm [merge] |
|
Evaluated for origin merge up to 4ee2145 |
|
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) |
Ref: #13412