use of org.eclipse.jkube.kit.common.ResourceFileType in project jkube by eclipse.
the class DefaultResourceService method writeResources.
@Override
public File writeResources(KubernetesList resources, ResourceClassifier classifier, KitLogger log) throws IOException {
final File targetDir = resourceServiceConfig.getTargetDir();
final ResourceFileType resourceFileType = resourceServiceConfig.getResourceFileType();
// write kubernetes.yml / openshift.yml
File resourceFileBase = new File(targetDir, classifier.getValue());
File file = writeResourcesIndividualAndComposite(resources, resourceFileBase, resourceFileType, log);
// Resolve template placeholders
if (resourceServiceConfig.isInterpolateTemplateParameters()) {
interpolateTemplateVariables(resources, file);
}
return file;
}
Aggregations