use of org.ballerinax.kubernetes.handlers.HelmChartHandler in project kubernetes by ballerinax.
the class ArtifactManager method createArtifacts.
/**
* Generate kubernetes artifacts.
*
* @throws KubernetesPluginException if an error occurs while generating artifacts
*/
void createArtifacts() throws KubernetesPluginException {
// add default kubernetes instructions.
setDefaultKubernetesInstructions();
OUT.println("\nGenerating artifacts...");
if (kubernetesDataHolder.getJobModel() != null) {
new JobHandler().createArtifacts();
new DockerHandler().createArtifacts();
} else {
new ServiceHandler().createArtifacts();
new IngressHandler().createArtifacts();
new SecretHandler().createArtifacts();
new PersistentVolumeClaimHandler().createArtifacts();
new ResourceQuotaHandler().createArtifacts();
new ConfigMapHandler().createArtifacts();
new DeploymentHandler().createArtifacts();
new HPAHandler().createArtifacts();
new DockerHandler().createArtifacts();
new HelmChartHandler().createArtifacts();
new IstioGatewayHandler().createArtifacts();
new IstioVirtualServiceHandler().createArtifacts();
if (kubernetesDataHolder.getOpenShiftBuildExtensionModel() != null || kubernetesDataHolder.getOpenShiftRouteModels().size() > 0) {
// Clean all instructions
instructions.clear();
new OpenShiftBuildConfigHandler().createArtifacts();
new OpenShiftImageStreamHandler().createArtifacts();
new OpenShiftRouteHandler().createArtifacts();
}
}
printInstructions();
}
Aggregations