mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Display config map data, not byte count.
This commit is contained in:
parent
6a1d0f0b7b
commit
670b21e11c
@ -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