mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-24 21:20:07 +00:00
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.
This commit is contained in:
parent
d1b89dd381
commit
b165fec0ed
1 changed files with 1 additions and 1 deletions
|
@ -4520,7 +4520,7 @@ prompt_kubecontext() {
|
||||||
text=$cloud_cluster
|
text=$cloud_cluster
|
||||||
fi
|
fi
|
||||||
# arn:aws:eks:us-east-1:123456789012:cluster/cluster-01
|
# 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_name=eks
|
||||||
cloud_zone=$match[1]
|
cloud_zone=$match[1]
|
||||||
cloud_account=$match[2]
|
cloud_account=$match[2]
|
||||||
|
|
Loading…
Reference in a new issue