Repository navigation
Support APIGroup in SAR/RAR - #5756
Conversation
|
Is this logically tied to all those commits? I would expect it to be distinct. |
|
built on top of commits with integration tests that exposed the issue... last commit is the only interesting one |
|
[test] |
|
still WIP? |
|
Work-incomplete-but-not-in-progress |
|
rebased, at least |
|
ready for review? |
|
@liggitt Bump |
| APIVersion string `json:"resourceAPIVersion" description:"API version of the resource being requested"` | ||
| // APIGroup is the API group of the resource | ||
| // Serialized as resourceAPIGroup to avoid conflicts with TypeMeta when inlined | ||
| APIGroup string `json:"resourceAPIGroup" description:"API group of the resource being requested"` |
There was a problem hiding this comment.
not enamored with these names. upstream nested the attributes in a spec, and just called them "Group" and Version", which is nice:
https://github.com/kubernetes/kubernetes/blob/807344da0ba4b3cec2239883b2669ea3114c9c24/pkg/apis/authorization/v1beta1/types.go#L70-L73
if we called the fields the same thing, we'd have "apiVersion" (the SAR api version) and "version" (the resource version we're checking), and "groups" (the subject groups we're checking) and "group" (the resource group we're checking), which is insane.
|
other than the API field names, this is ready for review |
|
re [test] bindata issue fixed |
| authorizationapi "github.com/openshift/origin/pkg/authorization/api" | ||
| ) | ||
|
|
||
| func TestAuthorizationAttributes(t *testing.T) { |
|
minor comments. lgtm even with the field names. |
|
@deads2k comments addressed, sanity check my api group references |
|
Verify failed. @danmcp does the cause analysis happen before or after rosie comments on pulls? It's a little annoying that I have to click through. |
|
@deads2k after |
|
lgtm [merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5162/) (Image: devenv-rhel7_3585) |
|
Evaluated for origin merge up to 91e0c15 |
|
Evaluated for origin test up to 91e0c15 |
|
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/1758/) |
Fixes #5751