• Geoff Baskwill's avatar
    pkg/printers: Support base64 decode in kubectl go-template · f8c56ba4
    Geoff Baskwill authored
    Adds a `base64decode` function to templates in `kubectl` so that
    it's possible to extract secret data in plaintext instead of
    base64 without requiring a separate executable.
    
    Sample usage:
    
    ```sh
    kubectl get secret SECRET -o go-template='{{ .data.KEY | base64decode }}'
    ```
    f8c56ba4
template_test.go 2.52 KB