Merge pull request #80827 from smarterclayton/config_map

`kubectl get` does not count binaryData keys on ConfigMap
This commit is contained in:
Kubernetes Prow Robot 2019-08-04 13:03:48 -07:00 committed by GitHub
commit b81d30a5b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1696,7 +1696,7 @@ func printConfigMap(obj *api.ConfigMap, options printers.PrintOptions) ([]metav1
row := metav1beta1.TableRow{
Object: runtime.RawExtension{Object: obj},
}
row.Cells = append(row.Cells, obj.Name, int64(len(obj.Data)), translateTimestampSince(obj.CreationTimestamp))
row.Cells = append(row.Cells, obj.Name, int64(len(obj.Data)+len(obj.BinaryData)), translateTimestampSince(obj.CreationTimestamp))
return []metav1beta1.TableRow{row}, nil
}