Skip to content

Support APIGroup in SAR/RAR - #5756

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
liggitt:apigroup_authz
Mar 2, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
liggitt:apigroup_authz

Conversation

@liggitt

@liggitt liggitt commented Nov 6, 2015

Copy link
Copy Markdown
Contributor

Fixes #5751

@liggitt liggitt added this to the 1.1.1 milestone Nov 6, 2015
@deads2k

deads2k commented Nov 6, 2015

Copy link
Copy Markdown
Contributor

Is this logically tied to all those commits? I would expect it to be distinct.

@liggitt

liggitt commented Nov 6, 2015

Copy link
Copy Markdown
Contributor Author

built on top of commits with integration tests that exposed the issue... last commit is the only interesting one

@liggitt

liggitt commented Nov 6, 2015

Copy link
Copy Markdown
Contributor Author

[test]

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 6, 2015
@deads2k

deads2k commented Nov 9, 2015

Copy link
Copy Markdown
Contributor

still WIP?

@liggitt

liggitt commented Nov 9, 2015

Copy link
Copy Markdown
Contributor Author

Work-incomplete-but-not-in-progress

@liggitt

liggitt commented Nov 9, 2015

Copy link
Copy Markdown
Contributor Author

rebased, at least

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 9, 2015
@deads2k

deads2k commented Nov 23, 2015

Copy link
Copy Markdown
Contributor

ready for review?

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 5, 2015
@liggitt liggitt modified the milestones: 1.1.1, 1.1.x Jan 15, 2016
@danmcp

danmcp commented Jan 20, 2016

Copy link
Copy Markdown

@liggitt Bump

@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jan 30, 2016
@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Feb 12, 2016
Comment thread pkg/authorization/api/v1/types.go Outdated
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"`

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.

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.

@smarterclayton smarterclayton modified the milestones: 1.1.x, 1.2.0 Feb 20, 2016
@smarterclayton smarterclayton modified the milestones: 1.2.0, 1.1.x Feb 20, 2016
@liggitt liggitt removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 23, 2016
@liggitt

liggitt commented Feb 23, 2016

Copy link
Copy Markdown
Contributor Author

other than the API field names, this is ready for review

@liggitt liggitt changed the title WIP - Support APIGroup in SAR/RAR Support APIGroup in SAR/RAR Feb 23, 2016
@jwforres

Copy link
Copy Markdown
Member

re [test] bindata issue fixed

authorizationapi "github.com/openshift/origin/pkg/authorization/api"
)

func TestAuthorizationAttributes(t *testing.T) {

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.

huh?

@deads2k

deads2k commented Feb 24, 2016

Copy link
Copy Markdown
Contributor

minor comments. lgtm even with the field names.

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 28, 2016
@liggitt

liggitt commented Feb 29, 2016

Copy link
Copy Markdown
Contributor Author

@deads2k comments addressed, sanity check my api group references

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 29, 2016
@deads2k

deads2k commented Mar 1, 2016

Copy link
Copy Markdown
Contributor

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.

@danmcp

danmcp commented Mar 1, 2016

Copy link
Copy Markdown

@deads2k after

@deads2k

deads2k commented Mar 1, 2016

Copy link
Copy Markdown
Contributor

lgtm [merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5162/) (Image: devenv-rhel7_3585)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 91e0c15

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 91e0c15

@openshift-bot

Copy link
Copy Markdown
Contributor

openshift-bot pushed a commit that referenced this pull request Mar 2, 2016
@openshift-bot
openshift-bot merged commit 210d53c into openshift:master Mar 2, 2016
@liggitt
liggitt deleted the apigroup_authz branch March 2, 2016 15:28
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.

6 participants