File entityFile = getResourceFile(namespace, name, entity.getClass());
ObjectMeta metadata = KubernetesHelper.getOrCreateMetadata(entity);
metadata.setNamespace(namespace);
metadata.setName(name);
if (entityFile != null) {
<BUG>KubernetesHelper.saveJson(entityFile, entity);
}
return "No metadata.name supplied!";</BUG>
}
private File getResourceCollectionFolder(String namespace, Class<? extends HasMetadata> clazz) {

File entityFile = getResourceFile(namespace, name, entity.getClass());
ObjectMeta metadata = KubernetesHelper.getOrCreateMetadata(entity);
metadata.setNamespace(namespace);
metadata.setName(name);
if (entityFile != null) {
KubernetesHelper.saveJson(entityFile, entity);
} else {
throw new WebApplicationException("No metadata.name supplied!");
}
}
private File getResourceCollectionFolder(String namespace, Class<? extends HasMetadata> clazz) {
