Skip to content

Commit 294001d

Browse files
committed
dx: 🌟 starship k8s module for GKE
1 parent f51a7c8 commit 294001d

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

starship/starship.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,22 @@ style = "accent1"
102102
[[kubernetes.contexts]]
103103
context_pattern = "arn:aws:eks:.*:cluster/(?P<cluster>[\\w-]+)"
104104
context_alias = "$cluster"
105-
style = "muted"
105+
style = "accent6"
106+
107+
[[kubernetes.contexts]]
108+
context_pattern = "gke_[^_]+_[^_]+_(?P<cluster>[\\w-]*prod[\\w-]*)"
109+
context_alias = "gke-$cluster"
110+
style = "accent5"
111+
112+
[[kubernetes.contexts]]
113+
context_pattern = "gke_[^_]+_[^_]+_(?P<cluster>[\\w-]*stag[\\w-]*)"
114+
context_alias = "gke-$cluster"
115+
style = "accent3"
116+
117+
[[kubernetes.contexts]]
118+
context_pattern = "gke_[^_]+_[^_]+_(?P<cluster>[\\w-]*dev[\\w-]*)"
119+
context_alias = "gke-$cluster"
120+
style = "accent1"
106121

107122
[[kubernetes.contexts]]
108123
context_pattern = "gke_[^_]+_[^_]+_(?P<cluster>[\\w-]+)"

0 commit comments

Comments
 (0)