diff options
author | Zoltán Reegn <zoltan.reegn@gmail.com> | 2023-01-19 20:38:12 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2023-01-19 20:45:25 +0300 |
commit | b165fec0ed971fc54c47a746eb15454c8c808eb6 (patch) | |
tree | 9761d18998113c10eb59ac612bdf593b1951a5b8 /internal | |
parent | d1b89dd3813fca823afef323101faf71a9840d36 (diff) |
Add AWS partitions support to EKS kubernetes cluster names
The AWS ARN in govcloud and china looks different to the currently supported
one:
https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/using-govcloud-arns.html
https://docs.amazonaws.cn/en_us/aws/latest/userguide/ARNs.html
This change introduces support for all possible AWS partitions.
Diffstat (limited to 'internal')
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 85873ffb..ea59a50f 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4520,7 +4520,7 @@ prompt_kubecontext() { text=$cloud_cluster fi # arn:aws:eks:us-east-1:123456789012:cluster/cluster-01 - elif [[ $cluster == (#b)arn:aws:eks:([[:alnum:]-]##):([[:digit:]]##):cluster/(?*) ]]; then + elif [[ $cluster == (#b)arn:aws[[:alnum:]-]#:eks:([[:alnum:]-]##):([[:digit:]]##):cluster/(?*) ]]; then cloud_name=eks cloud_zone=$match[1] cloud_account=$match[2] |