Commit 01fd6219 authored by Cheng Xing's avatar Cheng Xing

Setting default FlexVolume driver directory on COS images.

parent b39a0a74
...@@ -745,6 +745,12 @@ EOF ...@@ -745,6 +745,12 @@ EOF
FEATURE_GATES: $(yaml-quote ${FEATURE_GATES}) FEATURE_GATES: $(yaml-quote ${FEATURE_GATES})
EOF EOF
fi fi
if [[ "${master}" == "true" && "${MASTER_OS_DISTRIBUTION}" == "gci" ]] ||
[[ "${master}" == "false" && "${NODE_OS_DISTRIBUTION}" == "gci" ]]; then
cat >>$file <<EOF
VOLUME_PLUGIN_DIR: $(yaml-quote ${VOLUME_PLUGIN_DIR:-/home/kubernetes/flexvolume})
EOF
fi
if [ -n "${PROVIDER_VARS:-}" ]; then if [ -n "${PROVIDER_VARS:-}" ]; then
local var_name local var_name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment