refactor: update storage class configuration in ci-values.yaml and index.sh

This commit is contained in:
Nawaz Dhandala
2026-03-05 15:24:24 +00:00
parent 9eedec679f
commit ac94cd5fae
2 changed files with 6 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
global:
storageClass: local-path
storageClass: ""
host: localhost
httpProtocol: http

View File

@@ -81,11 +81,12 @@ if ! kind get clusters | grep -q "^${CLUSTER_NAME}$"; then
kind create cluster --name "${CLUSTER_NAME}" --wait 180s
fi
echo "KinD cluster is ready. Ensuring default StorageClass (local-path) is available."
# KinD already ships with a local-path-provisioner in local-path-storage namespace.
# Just wait for it to be ready and ensure the storage class is marked as default.
echo "KinD cluster is ready. Ensuring default StorageClass is available."
# KinD ships with a local-path-provisioner in local-path-storage namespace
# and a StorageClass named "standard". Wait for the provisioner and ensure
# the storage class is marked as default.
kubectl wait --for=condition=Available --timeout=120s -n local-path-storage deploy/local-path-provisioner
kubectl annotate storageclass local-path storageclass.kubernetes.io/is-default-class="true" --overwrite || true
kubectl annotate storageclass standard storageclass.kubernetes.io/is-default-class="true" --overwrite || true
echo "Cluster Nodes:"
kubectl get nodes -o wide