{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin-web-console/issues/2797","repository_url":"https://api.github.com/repos/openshift/origin-web-console","labels_url":"https://api.github.com/repos/openshift/origin-web-console/issues/2797/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin-web-console/issues/2797/comments","events_url":"https://api.github.com/repos/openshift/origin-web-console/issues/2797/events","html_url":"https://github.com/openshift/origin-web-console/pull/2797","id":296037528,"number":2797,"title":"Create ability to read annotation accessMode from StorageClasses","user":{"login":"zherman0","id":18728857,"avatar_url":"https://avatars0.githubusercontent.com/u/18728857?v=4","gravatar_id":"","url":"https://api.github.com/users/zherman0","html_url":"https://github.com/zherman0","followers_url":"https://api.github.com/users/zherman0/followers","following_url":"https://api.github.com/users/zherman0/following{/other_user}","gists_url":"https://api.github.com/users/zherman0/gists{/gist_id}","starred_url":"https://api.github.com/users/zherman0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zherman0/subscriptions","organizations_url":"https://api.github.com/users/zherman0/orgs","repos_url":"https://api.github.com/users/zherman0/repos","events_url":"https://api.github.com/users/zherman0/events{/privacy}","received_events_url":"https://api.github.com/users/zherman0/received_events","type":"User","site_admin":false},"labels":[{"id":711766287,"url":"https://api.github.com/repos/openshift/origin-web-console/labels/size/M","name":"size/M","color":"eebb00","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/openshift/origin-web-console/milestones/7","html_url":"https://github.com/openshift/origin-web-console/milestone/7","labels_url":"https://api.github.com/repos/openshift/origin-web-console/milestones/7/labels","id":3039126,"number":7,"title":"3.9.0","description":"","creator":{"login":"spadgett","id":1167259,"avatar_url":"https://avatars1.githubusercontent.com/u/1167259?v=4","gravatar_id":"","url":"https://api.github.com/users/spadgett","html_url":"https://github.com/spadgett","followers_url":"https://api.github.com/users/spadgett/followers","following_url":"https://api.github.com/users/spadgett/following{/other_user}","gists_url":"https://api.github.com/users/spadgett/gists{/gist_id}","starred_url":"https://api.github.com/users/spadgett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spadgett/subscriptions","organizations_url":"https://api.github.com/users/spadgett/orgs","repos_url":"https://api.github.com/users/spadgett/repos","events_url":"https://api.github.com/users/spadgett/events{/privacy}","received_events_url":"https://api.github.com/users/spadgett/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":16,"state":"open","created_at":"2018-01-16T13:57:08Z","updated_at":"2018-02-20T13:13:27Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2018-02-09T22:54:40Z","updated_at":"2018-02-20T15:42:26Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/openshift/origin-web-console/pulls/2797","html_url":"https://github.com/openshift/origin-web-console/pull/2797","diff_url":"https://github.com/openshift/origin-web-console/pull/2797.diff","patch_url":"https://github.com/openshift/origin-web-console/pull/2797.patch"},"body":"Create ability to read annotation accessMode from StorageClasses so that users do not have the option to select an access mode that is different from how the storage class is defined. Annotation is in the metadata section under annotations:\r\nkind: StorageClass\r\napiVersion: storage.k8s.io/v1beta1\r\nmetadata:\r\n  name: gold\r\n  annotations:\r\n    description: Gold is a storage class for showing gold level\r\n    storage.alpha.openshift.io/access-mode: ReadWriteMany\r\nprovisioner: kubernetes.io/aws-ebs\r\nparameters:\r\n  type: gp2\r\n  zone: us-east-1d\r\n\r\nDrop down now shows if accessMode is defined in storageClass annotation, also separated description to new line:\r\n![annotations2-newstoragedropdown](https://user-images.githubusercontent.com/18728857/36394040-9ae0974c-156f-11e8-8916-9876d8259abd.png)\r\n\r\n\r\nIf annotation is defined, access mode pre selected and disabled:\r\n![annotations4-storageclassselected](https://user-images.githubusercontent.com/18728857/36394054-ade971a6-156f-11e8-82d5-25090731439c.png)\r\n\r\n\r\nIf the storage class has no annotation for the access mode, the access mode will still be visible:\r\n![annotations3-nostorageclassselected](https://user-images.githubusercontent.com/18728857/36394061-b6d0dd18-156f-11e8-974d-1b50f947d7e9.png)\r\n\r\n\r\n@erinboyd @spadgett @jwforres @ncameronbritt \r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin-web-console/issues/comments/367018575","html_url":"https://github.com/openshift/origin-web-console/pull/2797#issuecomment-367018575","issue_url":"https://api.github.com/repos/openshift/origin-web-console/issues/2797","id":367018575,"user":{"login":"zherman0","id":18728857,"avatar_url":"https://avatars0.githubusercontent.com/u/18728857?v=4","gravatar_id":"","url":"https://api.github.com/users/zherman0","html_url":"https://github.com/zherman0","followers_url":"https://api.github.com/users/zherman0/followers","following_url":"https://api.github.com/users/zherman0/following{/other_user}","gists_url":"https://api.github.com/users/zherman0/gists{/gist_id}","starred_url":"https://api.github.com/users/zherman0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zherman0/subscriptions","organizations_url":"https://api.github.com/users/zherman0/orgs","repos_url":"https://api.github.com/users/zherman0/repos","events_url":"https://api.github.com/users/zherman0/events{/privacy}","received_events_url":"https://api.github.com/users/zherman0/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T15:42:26Z","updated_at":"2018-02-20T15:42:26Z","author_association":"CONTRIBUTOR","body":"@spadgett - does this version work for you?"}}
{"actor":{"display_login":"zherman0"}}