-
Notifications
You must be signed in to change notification settings - Fork 960
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: create tag script error (InvalidID) when multiple sunbets for ek…
…s nodegroup (#6073)
- Loading branch information
Showing
5 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
website/content/en/docs/getting-started/migrating-from-cas/scripts/step05-tag-subnets.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,6 +1,6 @@ | ||
for NODEGROUP in $(aws eks list-nodegroups --cluster-name "${CLUSTER_NAME}" --query 'nodegroups' --output text); do | ||
aws ec2 create-tags \ | ||
--tags "Key=karpenter.sh/discovery,Value=${CLUSTER_NAME}" \ | ||
--resources "$(aws eks describe-nodegroup --cluster-name "${CLUSTER_NAME}" \ | ||
--nodegroup-name "${NODEGROUP}" --query 'nodegroup.subnets' --output text )" | ||
done | ||
--resources $(aws eks describe-nodegroup --cluster-name "${CLUSTER_NAME}" \ | ||
--nodegroup-name "${NODEGROUP}" --query 'nodegroup.subnets' --output text ) | ||
done |
6 changes: 3 additions & 3 deletions
6
website/content/en/preview/getting-started/migrating-from-cas/scripts/step05-tag-subnets.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,6 +1,6 @@ | ||
for NODEGROUP in $(aws eks list-nodegroups --cluster-name "${CLUSTER_NAME}" --query 'nodegroups' --output text); do | ||
aws ec2 create-tags \ | ||
--tags "Key=karpenter.sh/discovery,Value=${CLUSTER_NAME}" \ | ||
--resources "$(aws eks describe-nodegroup --cluster-name "${CLUSTER_NAME}" \ | ||
--nodegroup-name "${NODEGROUP}" --query 'nodegroup.subnets' --output text )" | ||
done | ||
--resources $(aws eks describe-nodegroup --cluster-name "${CLUSTER_NAME}" \ | ||
--nodegroup-name "${NODEGROUP}" --query 'nodegroup.subnets' --output text ) | ||
done |
10 changes: 5 additions & 5 deletions
10
website/content/en/v0.34/getting-started/migrating-from-cas/scripts/step05-tag-subnets.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,6 +1,6 @@ | ||
for NODEGROUP in $(aws eks list-nodegroups --cluster-name ${CLUSTER_NAME} \ | ||
--query 'nodegroups' --output text); do aws ec2 create-tags \ | ||
for NODEGROUP in $(aws eks list-nodegroups --cluster-name "${CLUSTER_NAME}" --query 'nodegroups' --output text); do | ||
aws ec2 create-tags \ | ||
--tags "Key=karpenter.sh/discovery,Value=${CLUSTER_NAME}" \ | ||
--resources $(aws eks describe-nodegroup --cluster-name ${CLUSTER_NAME} \ | ||
--nodegroup-name $NODEGROUP --query 'nodegroup.subnets' --output text ) | ||
done | ||
--resources $(aws eks describe-nodegroup --cluster-name "${CLUSTER_NAME}" \ | ||
--nodegroup-name "${NODEGROUP}" --query 'nodegroup.subnets' --output text ) | ||
done |
6 changes: 3 additions & 3 deletions
6
website/content/en/v0.35/getting-started/migrating-from-cas/scripts/step05-tag-subnets.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,6 +1,6 @@ | ||
for NODEGROUP in $(aws eks list-nodegroups --cluster-name "${CLUSTER_NAME}" --query 'nodegroups' --output text); do | ||
aws ec2 create-tags \ | ||
--tags "Key=karpenter.sh/discovery,Value=${CLUSTER_NAME}" \ | ||
--resources "$(aws eks describe-nodegroup --cluster-name "${CLUSTER_NAME}" \ | ||
--nodegroup-name "${NODEGROUP}" --query 'nodegroup.subnets' --output text )" | ||
done | ||
--resources $(aws eks describe-nodegroup --cluster-name "${CLUSTER_NAME}" \ | ||
--nodegroup-name "${NODEGROUP}" --query 'nodegroup.subnets' --output text ) | ||
done |
6 changes: 3 additions & 3 deletions
6
website/content/en/v0.36/getting-started/migrating-from-cas/scripts/step05-tag-subnets.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,6 +1,6 @@ | ||
for NODEGROUP in $(aws eks list-nodegroups --cluster-name "${CLUSTER_NAME}" --query 'nodegroups' --output text); do | ||
aws ec2 create-tags \ | ||
--tags "Key=karpenter.sh/discovery,Value=${CLUSTER_NAME}" \ | ||
--resources "$(aws eks describe-nodegroup --cluster-name "${CLUSTER_NAME}" \ | ||
--nodegroup-name "${NODEGROUP}" --query 'nodegroup.subnets' --output text )" | ||
done | ||
--resources $(aws eks describe-nodegroup --cluster-name "${CLUSTER_NAME}" \ | ||
--nodegroup-name "${NODEGROUP}" --query 'nodegroup.subnets' --output text ) | ||
done |