mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Fix CSI CRD installation for Alpha clusters
This commit is contained in:
parent
224448b858
commit
4a4176db42
@ -246,6 +246,10 @@ fi
|
|||||||
# Optional: customize runtime config
|
# Optional: customize runtime config
|
||||||
RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}"
|
RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}"
|
||||||
|
|
||||||
|
if [[ "${KUBE_FEATURE_GATES:-}" == "AllAlpha=true" ]]; then
|
||||||
|
RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-api/all=true}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Optional: set feature gates
|
# Optional: set feature gates
|
||||||
FEATURE_GATES="${KUBE_FEATURE_GATES:-ExperimentalCriticalPodAnnotation=true}"
|
FEATURE_GATES="${KUBE_FEATURE_GATES:-ExperimentalCriticalPodAnnotation=true}"
|
||||||
|
|
||||||
@ -256,18 +260,6 @@ if [[ ! -z "${NODE_ACCELERATORS}" ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${KUBE_FEATURE_GATES:-}" == "AllAlpha=true" ]]; then
|
|
||||||
RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-api/all=true}"
|
|
||||||
if ! [[ "${KUBE_FEATURE_GATES:-}" =~ "CSIDriverRegistry" ]]; then
|
|
||||||
# If not explicitly specified, default to true.
|
|
||||||
FEATURE_GATES="${FEATURE_GATES},CSIDriverRegistry=true"
|
|
||||||
fi
|
|
||||||
if ! [[ "${KUBE_FEATURE_GATES:-}" =~ "CSINodeInfo" ]]; then
|
|
||||||
# If not explicitly specified, default to true.
|
|
||||||
FEATURE_GATES="${FEATURE_GATES},CSINodeInfo=true"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Optional: Install cluster DNS.
|
# Optional: Install cluster DNS.
|
||||||
# Set CLUSTER_DNS_CORE_DNS to 'false' to install kube-dns instead of CoreDNS.
|
# Set CLUSTER_DNS_CORE_DNS to 'false' to install kube-dns instead of CoreDNS.
|
||||||
CLUSTER_DNS_CORE_DNS="${CLUSTER_DNS_CORE_DNS:-true}"
|
CLUSTER_DNS_CORE_DNS="${CLUSTER_DNS_CORE_DNS:-true}"
|
||||||
|
@ -2574,7 +2574,7 @@ EOF
|
|||||||
if [[ "${ENABLE_DEFAULT_STORAGE_CLASS:-}" == "true" ]]; then
|
if [[ "${ENABLE_DEFAULT_STORAGE_CLASS:-}" == "true" ]]; then
|
||||||
setup-addon-manifests "addons" "storage-class/gce"
|
setup-addon-manifests "addons" "storage-class/gce"
|
||||||
fi
|
fi
|
||||||
if [[ "${FEATURE_GATES:-}" =~ "CSIDriverRegistry=true" || "${FEATURE_GATES:-}" =~ "CSINodeInfo=true" ]]; then
|
if [[ "${FEATURE_GATES:-}" =~ "AllAlpha=true" || "${FEATURE_GATES:-}" =~ "CSIDriverRegistry=true" || "${FEATURE_GATES:-}" =~ "CSINodeInfo=true" ]]; then
|
||||||
setup-addon-manifests "addons" "storage-crds"
|
setup-addon-manifests "addons" "storage-crds"
|
||||||
fi
|
fi
|
||||||
if [[ "${ENABLE_IP_MASQ_AGENT:-}" == "true" ]]; then
|
if [[ "${ENABLE_IP_MASQ_AGENT:-}" == "true" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user