{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/77048","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/77048/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/77048/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/77048/events","html_url":"https://github.com/kubernetes/kubernetes/pull/77048","id":437006711,"node_id":"MDExOlB1bGxSZXF1ZXN0MjczMzc0MTg3","number":77048,"title":"[FEATURE BRANCH]: flowcontrol.apiserver.k8s.io initial API models","user":{"login":"yue9944882","id":12049380,"node_id":"MDQ6VXNlcjEyMDQ5Mzgw","avatar_url":"https://avatars1.githubusercontent.com/u/12049380?v=4","gravatar_id":"","url":"https://api.github.com/users/yue9944882","html_url":"https://github.com/yue9944882","followers_url":"https://api.github.com/users/yue9944882/followers","following_url":"https://api.github.com/users/yue9944882/following{/other_user}","gists_url":"https://api.github.com/users/yue9944882/gists{/gist_id}","starred_url":"https://api.github.com/users/yue9944882/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yue9944882/subscriptions","organizations_url":"https://api.github.com/users/yue9944882/orgs","repos_url":"https://api.github.com/users/yue9944882/repos","events_url":"https://api.github.com/users/yue9944882/events{/privacy}","received_events_url":"https://api.github.com/users/yue9944882/received_events","type":"User","site_admin":false},"labels":[{"id":477397086,"node_id":"MDU6TGFiZWw0NzczOTcwODY=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"bfe5bf","default":false},{"id":680152113,"node_id":"MDU6TGFiZWw2ODAxNTIxMTM=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/do-not-merge/release-note-label-needed","name":"do-not-merge/release-note-label-needed","color":"e11d21","default":false},{"id":261005360,"node_id":"MDU6TGFiZWwyNjEwMDUzNjA=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/api-change","name":"kind/api-change","color":"e11d21","default":false},{"id":1111992057,"node_id":"MDU6TGFiZWwxMTExOTkyMDU3","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/needs-priority","name":"needs-priority","color":"ededed","default":false},{"id":173493835,"node_id":"MDU6TGFiZWwxNzM0OTM4MzU=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/api-machinery","name":"sig/api-machinery","color":"d2b48c","default":false},{"id":253451093,"node_id":"MDU6TGFiZWwyNTM0NTEwOTM=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/XXL","name":"size/XXL","color":"ee0000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2019-04-25T04:41:27Z","updated_at":"2019-06-04T21:37:52Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/77048","html_url":"https://github.com/kubernetes/kubernetes/pull/77048","diff_url":"https://github.com/kubernetes/kubernetes/pull/77048.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/77048.patch"},"body":"NOTE: i only put hub-type api definitions here and didn't run code-generators on purpose so that we can review easier. plz ignore the failing tests. \r\n\r\n\r\n\r\nadding api model from mike's initial design.\r\n\r\nalso i simplified the flow schema model a bit. yaml example configuration:\r\n\r\n```go\r\n\r\n# any user requests any resources will match \"unclassified-low\"\r\napiVersion: flowcontrol.apiserver.k8s.io/v1alpha1\r\nkind: FlowSchema\r\nmeta:\r\n  name: unclassified-kevin-low\r\nspec:\r\n  matchingPrecedence: 500\r\n  requestPriority:\r\n    name: unclassified-low\r\n  flowDistinguisherMethod: ByUserName\r\n  rules:\r\n  - subject:\r\n      kind: User\r\n      name: kevin\r\n    rule: \r\n      verbs: ['*']\r\n      apiGroups: ['*']\r\n      resources: ['*']\r\n\r\n# any user requests any resources will match \"unclassified-low\"\r\napiVersion: flowcontrol.apiserver.k8s.io/v1alpha1\r\nkind: FlowSchema\r\nmeta:\r\n  name: system-list-pod-low\r\nspec:\r\n  matchingPrecedence: 500\r\n  requestPriority:\r\n    name: unclassified-low\r\n  flowDistinguisherMethod: ByUserName\r\n  rules:\r\n  - subject:\r\n      kind: Group\r\n      name: system:masters\r\n    rule: \r\n      verbs: ['list']\r\n      apiGroups: ['*']\r\n      resources: ['pods']\r\n\r\n# any user from system:masters or system:nodes group requests any resources will match \"system-high\"\r\napiVersion: flowcontrol.apiserver.k8s.io/v1alpha1\r\nkind: FlowSchema\r\nmeta:\r\n  name: system-high\r\nspec:\r\n  matchingPrecedence: 500\r\n  requestPriority:\r\n    name: system-high\r\n  flowDistinguisherMethod: ByUserGroup\r\n  rules:\r\n  - subject:\r\n       kind: Group\r\n       name: system:masters\r\n    rule: \r\n      verbs: ['*']\r\n      apiGroups: ['*']\r\n      resources: ['*']\r\n  - subject:\r\n       kind: Group\r\n       name: system:nodes\r\n    rule: \r\n      verbs: ['*']\r\n      apiGroups: ['*']\r\n      resources: ['*']\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/498853296","html_url":"https://github.com/kubernetes/kubernetes/pull/77048#issuecomment-498853296","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/77048","id":498853296,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5ODg1MzI5Ng==","user":{"login":"MikeSpreitzer","id":14296719,"node_id":"MDQ6VXNlcjE0Mjk2NzE5","avatar_url":"https://avatars2.githubusercontent.com/u/14296719?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeSpreitzer","html_url":"https://github.com/MikeSpreitzer","followers_url":"https://api.github.com/users/MikeSpreitzer/followers","following_url":"https://api.github.com/users/MikeSpreitzer/following{/other_user}","gists_url":"https://api.github.com/users/MikeSpreitzer/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeSpreitzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeSpreitzer/subscriptions","organizations_url":"https://api.github.com/users/MikeSpreitzer/orgs","repos_url":"https://api.github.com/users/MikeSpreitzer/repos","events_url":"https://api.github.com/users/MikeSpreitzer/events{/privacy}","received_events_url":"https://api.github.com/users/MikeSpreitzer/received_events","type":"User","site_admin":false},"created_at":"2019-06-04T21:37:52Z","updated_at":"2019-06-04T21:37:52Z","author_association":"MEMBER","body":"/test pull-kubernetes-integration\r\n"}}
{"actor":{"display_login":"MikeSpreitzer"}}