mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 18:27:49 +00:00
Merge pull request #75747 from msau42/remove-alpha-crd
Remove alpha csi CRD
This commit is contained in:
@@ -903,18 +903,6 @@ function create_storage_class {
|
||||
fi
|
||||
}
|
||||
|
||||
create_csi_crd() {
|
||||
echo "create_csi_crd $1"
|
||||
YAML_FILE=${KUBE_ROOT}/cluster/addons/storage-crds/$1.yaml
|
||||
|
||||
if [ -e "${YAML_FILE}" ]; then
|
||||
echo "Create $1 crd"
|
||||
${KUBECTL} --kubeconfig="${CERT_DIR}/admin.kubeconfig" create -f "${YAML_FILE}"
|
||||
else
|
||||
echo "No $1 available."
|
||||
fi
|
||||
}
|
||||
|
||||
function print_success {
|
||||
if [[ "${START_MODE}" != "kubeletonly" ]]; then
|
||||
if [[ "${ENABLE_DAEMON}" = false ]]; then
|
||||
@@ -1062,14 +1050,6 @@ if [[ "${DEFAULT_STORAGE_CLASS}" = "true" ]]; then
|
||||
create_storage_class
|
||||
fi
|
||||
|
||||
if [[ "${FEATURE_GATES:-}" == "AllAlpha=true" || "${FEATURE_GATES:-}" =~ "CSIDriverRegistry=true" ]]; then
|
||||
create_csi_crd "csidriver"
|
||||
fi
|
||||
|
||||
if [[ "${FEATURE_GATES:-}" == "AllAlpha=true" || "${FEATURE_GATES:-}" =~ "CSINodeInfo=true" ]]; then
|
||||
create_csi_crd "csinodeinfo"
|
||||
fi
|
||||
|
||||
print_success
|
||||
|
||||
if [[ "${ENABLE_DAEMON}" = false ]]; then
|
||||
|
Reference in New Issue
Block a user