diff options
author | Tobi <22715034+twobiers@users.noreply.github.com> | 2022-05-30 20:09:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 20:09:53 +0200 |
commit | df5c2d8836622677460e34fa8082faa6b1a52835 (patch) | |
tree | c032457f3fcd60905cb2da13dd183fdfe9662288 /docs | |
parent | b8af9a509aa779562ba0114d684a3d73d1cbc9b4 (diff) |
feat(kubernetes): add user alias (#4008)
* add kubernetes user alias (fixes #3870)
* update config schema
* sort config property alphabetically
* Update README.md
* add test-case for non-matching alias
Diffstat (limited to 'docs')
-rw-r--r-- | docs/config/README.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/config/README.md b/docs/config/README.md index 9fd270c47..61649ca53 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -2099,6 +2099,7 @@ To enable it, set `disabled` to `false` in your configuration file. | `format` | `'[$symbol$context( \($namespace\))]($style) in '` | The format for the module. | | `style` | `"cyan bold"` | The style for the module. | | `context_aliases` | | Table of context aliases to display. | +| `user_aliases` | | Table of user aliases to display. | | `disabled` | `true` | Disables the `kubernetes` module. | ### Variables @@ -2126,11 +2127,14 @@ disabled = false "dev.local.cluster.k8s" = "dev" ".*/openshift-cluster/.*" = "openshift" "gke_.*_(?P<var_cluster>[\\w-]+)" = "gke-$var_cluster" +[kubernetes.user_aliases] +"dev.local.cluster.k8s" = "dev" +"root/.*" = "root" ``` #### Regex Matching -Additional to simple aliasing, `context_aliases` also supports +Additional to simple aliasing, `context_aliases` and `user_aliases` also supports extended matching and renaming using regular expressions. The regular expression must match on the entire kube context, |