Viewing a key now wraps the output in $key=''
As the title, you can see that viewing a secret now wraps the decoded value, making outputting to a file impossible:
```
➜ k view-secret test-kubeconfig
Viewing only available key: value
value='apiVersion: v1
clusters:
- cluster:
certificate-authority-data
...
EgUFJJVkFURSBLRVktLS0tLQo=
'
```
This happens with single and multi-line strings. It also makes no difference if I provide the key to view.
关闭于 2025-11-16 1 条评论