mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #38265 from brendandburns/configmap
Automatic merge from submit-queue (batch tested with PRs 38284, 38403, 38265) Display config map data, not byte count. Begins to address https://github.com/kubernetes/kubernetes/issues/36222 Next step is: `kubectl edit configmap <name> --key=<file-name>` @kubernetes/sig-cli
This commit is contained in:
commit
7168fce59a
@ -2389,7 +2389,8 @@ func describeConfigMap(configMap *api.ConfigMap) (string, error) {
|
||||
|
||||
w.Write(LEVEL_0, "\nData\n====\n")
|
||||
for k, v := range configMap.Data {
|
||||
w.Write(LEVEL_0, "%s:\t%d bytes\n", k, len(v))
|
||||
w.Write(LEVEL_0, "%s:\n----\n", k)
|
||||
w.Write(LEVEL_0, "%s\n", string(v))
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user