mirror of https://github.com/k3s-io/k3s
Setting default FlexVolume driver directory on COS images.
parent
b39a0a7482
commit
01fd6219cf
|
@ -743,6 +743,12 @@ EOF
|
||||||
if [ -n "${FEATURE_GATES:-}" ]; then
|
if [ -n "${FEATURE_GATES:-}" ]; then
|
||||||
cat >>$file <<EOF
|
cat >>$file <<EOF
|
||||||
FEATURE_GATES: $(yaml-quote ${FEATURE_GATES})
|
FEATURE_GATES: $(yaml-quote ${FEATURE_GATES})
|
||||||
|
EOF
|
||||||
|
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
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue