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