// SortedMapKeys returns a sorted slice of keys to the given map. // Writing this function never gets old. func SortedMapKeys(m map[string]string) []string { … } func (rn *RNode) LoadMapIntoConfigMapData(m map[string]string) error { … } func (rn *RNode) LoadMapIntoConfigMapBinaryData(m map[string]string) error { … } func makeConfigMapValueRNode(s string) (field string, rN *RNode) { … } func (rn *RNode) LoadMapIntoSecretData(m map[string]string) error { … } // In a secret, all data is base64 encoded, regardless of its conformance // or lack thereof to UTF-8. func makeSecretValueRNode(s string) *RNode { … } // encodeBase64 encodes s as base64 that is broken up into multiple lines // as appropriate for the resulting length. func encodeBase64(s string) string { … }