Skip to content

Commit c1c23a0

Browse files
committed
fix
1 parent c0294b3 commit c1c23a0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/destroy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ jobs:
8383
# ---------------------------
8484
# Delete Karpenter Resources (Updated)
8585
# ---------------------------
86+
87+
- name: Scale down to release nodes first
88+
run: |
89+
kubectl scale deployment --all --replicas=0 --all-namespaces || true
90+
sleep 30 # Let Karpenter scale down naturally
91+
continue-on-error: true
92+
8693
- name: Delete Karpenter Provisioners and AWSNodeTemplates
8794
run: |
8895
echo "Deleting Karpenter Provisioners..."

0 commit comments

Comments
 (0)