docs: public static String metaNamespaceKeyFunc(Object obj) {
      try {
        V1ObjectMeta metadata;
        if (obj instanceof String) {
          return (String) obj;
        } else if (obj instanceof V1ObjectMeta) {
          metadata = (V1ObjectMeta) obj;
        } else {
          metadata = Reflect.objectMetadata(obj);
          if (metadata == null) {
            throw new BadObjectException(obj);
          }
        }
        if (!Strings.isNullOrEmpty(metadata.getNamespace())) {
          return metadata.getNamespace() + "/" + metadata.getName();
        }
        return metadata.getName();
      } catch (ObjectMetaReflectException e) {
        // NOTE(yue9944882): might want to handle this as a checked exception
        throw new RuntimeException(e);
      }
    }