fix: Disable Kubernetes module by default (#488)

Given the global nature of the Kubernetes module, the module has been disabled by default. The opportunity has also been taken to refactor the Kubernetes module to use the new config module.
This commit is contained in:
Thomas O'Donnell
2019-10-05 11:31:23 +02:00
committed by Matan Kushner
parent 1bf60b3dd5
commit 5a8777ff45
4 changed files with 57 additions and 12 deletions
+9 -2
View File
@@ -574,13 +574,20 @@ can be done via `kubectl config set-context starship-cluster --namespace
astronaut`. If the `$KUBECONFIG` env var is set the module will use that if
not it will use the `~/.kube/config`.
::: tip
This module is disabled by default.
To enable it, set `disabled` to `false` in your configuration file.
:::
### Options
| Variable | Default | Description |
| ---------- | ------------- | --------------------------------------------------- |
| `symbol` | `"☸ "` | The symbol used before displaying the Cluster info. |
| `style` | `"bold blue"` | The style for the module. |
| `disabled` | `false` | Disables the `kubernetes` module |
| `disabled` | `true` | Disables the `kubernetes` module |
### Example
@@ -590,7 +597,7 @@ not it will use the `~/.kube/config`.
[kubernetes]
symbol = "⛵ "
style = "dim green"
disabled = true
disabled = false
```