Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ kubectl get nodes
# --- storage class: tag every CSI volume at birth ----------------------------
# LKE's default SC has no volumeTags and a StorageClass's parameters are immutable,
# so its volumes are born untagged and prune-lke-orphans.sh can never attribute them.
# The name stays LKE's `-retain` so charts and existing PVCs still resolve it, even
# though it now reclaims Delete: a churned PVC must free its volume mid-run.
kubectl delete storageclass linode-block-storage-retain --ignore-not-found
kubectl apply -f - <<EOF
apiVersion: storage.k8s.io/v1
Expand All @@ -145,7 +147,7 @@ metadata:
provisioner: linodebs.csi.linode.com
parameters:
linodebs.csi.linode.com/volumeTags: "pmm-qa-ephemeral,pmm-qa-run:$RUN_ID"
reclaimPolicy: Retain
reclaimPolicy: Delete
volumeBindingMode: Immediate
allowVolumeExpansion: true
EOF
Expand Down
Loading