From d14ed06144906cacfe5ccd8c6d2df95b92d76c05 Mon Sep 17 00:00:00 2001 From: Cheng Xing Date: Thu, 6 Jul 2017 11:52:41 -0700 Subject: Updating FlexVolume doc with capabilities addition --- contributors/devel/flexvolume.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/contributors/devel/flexvolume.md b/contributors/devel/flexvolume.md index 79df2d53..41d7e54c 100644 --- a/contributors/devel/flexvolume.md +++ b/contributors/devel/flexvolume.md @@ -19,8 +19,10 @@ Call-outs are invoked from Controller-manager only when "--enable-controller-att ### Driver invocation model: #### Init: -Initializes the driver. Called during Kubelet & Controller manager initialization. - +Initializes the driver. Called during Kubelet & Controller manager initialization. On success, the function returns a capabilities map showing whether each Flexvolume capability is supported by the driver. +Current capabilities: +* `attach` - a boolean field indicating whether the driver requires attach and detach operations. This field is *required*, although for backward-compatibility the default value is set to `true`, i.e. requires attach and detach. +See [Driver output](#driver-output) for the capabilities map format. ``` init ``` @@ -105,6 +107,10 @@ following format. "device": "" "volumeName": "" "attached": + "capabilities": + { + "attach": + } } ``` -- cgit v1.2.3