func encodeConfigMap(cm *v1.ConfigMap) (string, error) {
	// json.Marshal sorts the keys in a stable order in the encoding
	m := map[string]interface{}{
		"kind": "ConfigMap",
		"name": cm.Name,
		"data": cm.Data,
	}
	if cm.Immutable != nil {
		m["immutable"] = *cm.Immutable
	}
	if len(cm.BinaryData) > 0 {
		m["binaryData"] = cm.BinaryData
	}
	data, err := json.Marshal(m)
	if err != nil {
		return "", err
	}
	return string(data), nil
}
// encodeConfigMap encodes a ConfigMap.
// Data, Kind, and Name are taken into account.
encodeConfigMap encodes a ConfigMap.
Data, Kind, and Name are taken into account.
// encodeConfigMap encodes a ConfigMap . // Data Kind and Name are taken into account .
func encodeConfigMap(cm *v1.ConfigMap) (string, error) {
	m := map[string]interface{}{
		"kind": "ConfigMap",
		"name": cm.Name,
		"data": cm.Data,
	}
	if cm.Immutable != nil {
		m["immutable"] = *cm.Immutable
	}
	if len(cm.BinaryData) > 0 {
		m["binaryData"] = cm.BinaryData
	}
	data, err := json.Marshal(m)
	if err != nil {
		return "", err
	}
	return string(data), nil
}
func encodeConfigMap ( cm * v1 . ConfigMap ) ( string , error ) { m := map [ string ] interface { } { " " : " " , " " : cm . Name , " " : cm . Data , } if cm . Immutable != nil { m [ " " ] = * cm . Immutable } if len ( cm . BinaryData ) > 0 { m [ " " ] = cm . BinaryData } data , err := json . Marshal ( m ) if err != nil { return " " , err } return string ( data ) , nil }
encodeConfigMap encodes a ConfigMap.
encodeConfigMap encodes a ConfigMap .
// json.Marshal sorts the keys in a stable order in the encoding