Search in sources :

Example 1 with ResourceFileType

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;
}
Also used : ResourceFileType(org.eclipse.jkube.kit.common.ResourceFileType) File(java.io.File)

Aggregations

File (java.io.File)1 ResourceFileType (org.eclipse.jkube.kit.common.ResourceFileType)1