chore: remove unused variable in init_gitlab.sh

This commit is contained in:
chrisfu 2026-04-16 16:04:24 -07:00
parent 14edd3038c
commit 20efd6de14

View File

@ -1611,7 +1611,6 @@ if [[ "$MODE" == "k8s" ]]; then
# GKE CSI normalization: prefer standard-rwo if it exists on cluster
# or if the existing CR already uses it (avoiding drift loops).
# This ensures that 'standard' and 'standard-rwo' are treated as equivalent.
local _current_cr_sc
_current_cr_sc=$(kubectl -n "$NAMESPACE" get gitlab "$GITLAB_RELEASE" -o jsonpath='{.spec.chart.values.global.persistence.storageClass}' 2>/dev/null || true)
if [[ -n "$_current_cr_sc" ]] && is_gke_standard_storage_equivalent "$_current_cr_sc" "standard"; then