forked from aws/karpenter-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: No longer include cluster name in launch template name, since th…
…e character sets are not compatible (aws#3701)
- Loading branch information
Showing
2 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
...ntent/en/preview/getting-started/getting-started-with-karpenter/scripts/step16-cleanup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
helm uninstall karpenter --namespace karpenter | ||
aws cloudformation delete-stack --stack-name "Karpenter-${CLUSTER_NAME}" | ||
aws ec2 describe-launch-templates \ | ||
| jq -r ".LaunchTemplates[].LaunchTemplateName" \ | ||
| grep -i "Karpenter-${CLUSTER_NAME}" \ | ||
| xargs -I{} aws ec2 delete-launch-template --launch-template-name {} | ||
aws ec2 describe-launch-templates --filters Name=tag:karpenter.k8s.aws/cluster,Values=${CLUSTER_NAME} | | ||
jq -r ".LaunchTemplates[].LaunchTemplateName" | | ||
xargs -I{} aws ec2 delete-launch-template --launch-template-name {} | ||
eksctl delete cluster --name "${CLUSTER_NAME}" |