{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/13840","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/13840/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/13840/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/13840/events","html_url":"https://github.com/kubernetes/kubernetes/pull/13840","id":105916917,"number":13840,"title":"Add support for flex volume.","user":{"login":"nelcy","id":9920367,"avatar_url":"https://avatars.githubusercontent.com/u/9920367?v=3","gravatar_id":"","url":"https://api.github.com/users/nelcy","html_url":"https://github.com/nelcy","followers_url":"https://api.github.com/users/nelcy/followers","following_url":"https://api.github.com/users/nelcy/following{/other_user}","gists_url":"https://api.github.com/users/nelcy/gists{/gist_id}","starred_url":"https://api.github.com/users/nelcy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelcy/subscriptions","organizations_url":"https://api.github.com/users/nelcy/orgs","repos_url":"https://api.github.com/users/nelcy/repos","events_url":"https://api.github.com/users/nelcy/events{/privacy}","received_events_url":"https://api.github.com/users/nelcy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/api","name":"area/api","color":"e1ed21"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20no","name":"cla: no","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"thockin","id":5595220,"avatar_url":"https://avatars.githubusercontent.com/u/5595220?v=3","gravatar_id":"","url":"https://api.github.com/users/thockin","html_url":"https://github.com/thockin","followers_url":"https://api.github.com/users/thockin/followers","following_url":"https://api.github.com/users/thockin/following{/other_user}","gists_url":"https://api.github.com/users/thockin/gists{/gist_id}","starred_url":"https://api.github.com/users/thockin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thockin/subscriptions","organizations_url":"https://api.github.com/users/thockin/orgs","repos_url":"https://api.github.com/users/thockin/repos","events_url":"https://api.github.com/users/thockin/events{/privacy}","received_events_url":"https://api.github.com/users/thockin/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-09-10T23:13:55Z","updated_at":"2015-09-11T00:44:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/13840","html_url":"https://github.com/kubernetes/kubernetes/pull/13840","diff_url":"https://github.com/kubernetes/kubernetes/pull/13840.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/13840.patch"},"body":"This change list adds support for a new type of volume, 'flex volume'.\r\n\r\nThe goal of this change is to enable third-party providers to provide their own executable to setup and teardown volumes in Kubernetes.\r\n\r\nPlugin takes the following parameters:\r\n - Provider: Name of the plugin provider\r\n - Command: Executable to setup or teardown volume\r\n - VolumeID: ID or name of the volume\r\n - FSType: File system type\r\n - Readonly : Mount read-only\r\n - Options: Extra options to pass to the plugin. Options are passed as a json encoded map[string]string\r\n\r\nThe executable command is invoked from kubelet to setup & teardown the volumes.\r\n\r\nSetup Path:\r\nExecutable is invoked with \"setup\", \"volumeID\" and \"json encoded options\" as arguments. Setup returns the block device where the volume is setup, like /dev/mapper/vg-vol1\r\n\r\nTeardown Path:\r\nExecutable is invoked with \"teardown\" and \"block device\" as arguments.\r\n\r\nExample flex volume definition:\r\n{ \r\n    \"provider\": \"blue\",\r\n    \"command\": \"setup.sh\",\r\n    \"volumeID\": \"vol1\",\r\n    \"fsType\": \"ext4\",\r\n    \"options\": {\r\n        \"size\": \"10g\",\r\n        \"replicas\": 3,\r\n        \"qos\": \"high\"\r\n    }\r\n}"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/139419682","html_url":"https://github.com/kubernetes/kubernetes/pull/13840#issuecomment-139419682","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/13840","id":139419682,"user":{"login":"markturansky","id":8001968,"avatar_url":"https://avatars.githubusercontent.com/u/8001968?v=3","gravatar_id":"","url":"https://api.github.com/users/markturansky","html_url":"https://github.com/markturansky","followers_url":"https://api.github.com/users/markturansky/followers","following_url":"https://api.github.com/users/markturansky/following{/other_user}","gists_url":"https://api.github.com/users/markturansky/gists{/gist_id}","starred_url":"https://api.github.com/users/markturansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markturansky/subscriptions","organizations_url":"https://api.github.com/users/markturansky/orgs","repos_url":"https://api.github.com/users/markturansky/repos","events_url":"https://api.github.com/users/markturansky/events{/privacy}","received_events_url":"https://api.github.com/users/markturansky/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T00:44:42Z","updated_at":"2015-09-11T00:44:42Z","body":"Hi @nelcy thanks for the PR.\r\n\r\nWhat kind of storage do you envision a FlexVolume provisioning/attaching/mounting?  Can you describe the use case for this volume?\r\n\r\n\r\n"}}