func encodeSecret(sec *v1.Secret) (string, error) {
	m := map[string]interface{}{
		"kind": "Secret",
		"type": sec.Type,
		"name": sec.Name,
		"data": sec.Data,
	}
	if sec.Immutable != nil {
		m["immutable"] = *sec.Immutable
	}
	// json.Marshal sorts the keys in a stable order in the encoding
	data, err := json.Marshal(m)
	if err != nil {
		return "", err
	}
	return string(data), nil
}
// encodeSecret encodes a Secret.
// Data, Kind, Name, and Type are taken into account.
encodeSecret encodes a Secret.
Data, Kind, Name, and Type are taken into account.
// encodeSecret encodes a Secret . // Data Kind Name and Type are taken into account .
func encodeSecret(sec *v1.Secret) (string, error) {
	m := map[string]interface{}{
		"kind": "Secret",
		"type": sec.Type,
		"name": sec.Name,
		"data": sec.Data,
	}
	if sec.Immutable != nil {
		m["immutable"] = *sec.Immutable
	}
	data, err := json.Marshal(m)
	if err != nil {
		return "", err
	}
	return string(data), nil
}
func encodeSecret ( sec * v1 . Secret ) ( string , error ) { m := map [ string ] interface { } { " " : " " , " " : sec . Type , " " : sec . Name , " " : sec . Data , } if sec . Immutable != nil { m [ " " ] = * sec . Immutable } data , err := json . Marshal ( m ) if err != nil { return " " , err } return string ( data ) , nil }
encodeSecret encodes a Secret.
encodeSecret encodes a Secret .
// json.Marshal sorts the keys in a stable order in the encoding