kx secret
Lists Secrets exactly as kx get does. With --decode, prints an indexed Secret’s data in plaintext, or every Secret in the namespace when no index is given.
Unrecognized flags are passed through to kubectl.
Usage
kx secret [OPTIONS] [index]... [kubectl flags]Aliases
kx secrets
Arguments
| Argument | Description |
|---|---|
[index]... | Row number from the current listing; run kx state to see it |
Options
| Option | Description |
|---|---|
-A, --all-namespaces | List across every namespace; each row is indexed and carries its own namespace |
--decode | Show Secret data in plaintext; every Secret in the namespace when no index is given |
-k, --key string | With --decode, print only this key’s value |
-m, --match string | Match by name (substring, case-insensitive) |
-n, --namespace string | Namespace to list from; defaults to the current namespace |
-w, --watch | Redraw the listing live as resources change; a watch never completes, so results are not indexed |
-y, --yes | Skip the confirmation prompt for a namespace-wide --decode |
Global options
| Option | Description |
|---|---|
--no-color | Disable styled output |
-h, --help | Show this message and exit |
Examples
kx secret
kx secret 1 --decode
kx secret 1 --decode -k tls.crt
kx secret 1..3
kx secret 3..