id = "k9s"
name = "K9s"
homepage = "https://k9scli.io"
description = "K9s is a terminal based UI to interact with your Kubernetes clusters."
icon = "https://k9scli.io/assets/k9s.png"
executables = ["k9s"]
[dotfiles]
paths = [
"~/.config/k9s/",
"~/Library/Application Support/k9s/",
"%LOCALAPPDATA%/k9s/",
]
secret = []
[[dotfiles.machine_lines]]
file = [
"~/.config/k9s/config.yaml",
"~/Library/Application Support/k9s/config.yaml",
"%LOCALAPPDATA%/k9s/config.yaml",
]
match = { key_path = ["k9s.screenDumpDir"] }
scope = "backup"
[commands]
format = 1
label = "Open K9s"
description = "Launch the K9s cluster UI with context, namespace and mode options. Auth and TLS options are left out."
quality = "ai-draft"
base = "fig:k9s"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/k9s.ts"
license = "MIT"
[[commands.field]]
id = "context"
label = "Kube context"
type = "string"
option = ["--context"]
sources = ["fig"]
[[commands.field]]
id = "namespace"
label = "Namespace"
type = "string"
option = ["-n", "--namespace"]
sources = ["fig"]
[[commands.field]]
id = "all_namespaces"
label = "All namespaces"
type = "boolean"
option = ["-A", "--all-namespaces"]
sources = ["fig"]
[[commands.field]]
id = "command"
label = "Start resource"
description = "Resource view to load at launch, for example pods or deploy."
type = "string"
option = ["-c", "--command"]
suggestions = [{ value = "pods", label = "Pods" }, { value = "deployments", label = "Deployments" }, { value = "services", label = "Services" }]
sources = ["fig"]
[[commands.field]]
id = "kubeconfig"
label = "Kubeconfig file"
type = "path"
option = ["--kubeconfig"]
path = { kind = "file", role = "input" }
sources = ["fig"]
[[commands.field]]
id = "readonly"
label = "Read-only mode"
type = "boolean"
option = ["--readonly"]
sources = ["fig"]
[[commands.field]]
id = "write"
label = "Write mode"
type = "boolean"
option = ["--write"]
sources = ["fig"]
[[commands.field]]
id = "headless"
label = "Hide header"
type = "boolean"
option = ["--headless"]
sources = ["fig"]
[[commands.field]]
id = "refresh"
label = "Refresh rate (seconds)"
type = "integer"
option = ["-r", "--refresh"]
sources = ["fig"]
[[commands.field]]
id = "log_level"
label = "Log level"
type = "string"
option = ["-l", "--logLevel"]
suggestions = [{ value = "info", label = "info" }, { value = "warn", label = "warn" }, { value = "debug", label = "debug" }, { value = "trace", label = "trace" }, { value = "error", label = "error" }]
sources = ["fig"]
[[commands.task]]
id = "open"
label = "Open in a namespace"
fields = ["context", "namespace", "command"]
[[commands.task]]
id = "safe"
label = "Open read-only"
set = { readonly = [true] }
fields = ["readonly", "context", "namespace", "all_namespaces"]
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["context", "namespace", "all_namespaces", "command", "readonly"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["kubeconfig", "write", "headless", "refresh", "log_level"]