Search in sources :

Example 1 with OpenShiftImageStreamHandler

use of org.ballerinax.kubernetes.handlers.openshift.OpenShiftImageStreamHandler 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();
}
Also used : ResourceQuotaHandler(org.ballerinax.kubernetes.handlers.ResourceQuotaHandler) OpenShiftRouteHandler(org.ballerinax.kubernetes.handlers.openshift.OpenShiftRouteHandler) IstioVirtualServiceHandler(org.ballerinax.kubernetes.handlers.istio.IstioVirtualServiceHandler) ServiceHandler(org.ballerinax.kubernetes.handlers.ServiceHandler) IstioGatewayHandler(org.ballerinax.kubernetes.handlers.istio.IstioGatewayHandler) OpenShiftBuildConfigHandler(org.ballerinax.kubernetes.handlers.openshift.OpenShiftBuildConfigHandler) IngressHandler(org.ballerinax.kubernetes.handlers.IngressHandler) DeploymentHandler(org.ballerinax.kubernetes.handlers.DeploymentHandler) IstioVirtualServiceHandler(org.ballerinax.kubernetes.handlers.istio.IstioVirtualServiceHandler) DockerHandler(org.ballerinax.kubernetes.handlers.DockerHandler) HPAHandler(org.ballerinax.kubernetes.handlers.HPAHandler) ConfigMapHandler(org.ballerinax.kubernetes.handlers.ConfigMapHandler) JobHandler(org.ballerinax.kubernetes.handlers.JobHandler) SecretHandler(org.ballerinax.kubernetes.handlers.SecretHandler) HelmChartHandler(org.ballerinax.kubernetes.handlers.HelmChartHandler) OpenShiftImageStreamHandler(org.ballerinax.kubernetes.handlers.openshift.OpenShiftImageStreamHandler) PersistentVolumeClaimHandler(org.ballerinax.kubernetes.handlers.PersistentVolumeClaimHandler)

Aggregations

ConfigMapHandler (org.ballerinax.kubernetes.handlers.ConfigMapHandler)1 DeploymentHandler (org.ballerinax.kubernetes.handlers.DeploymentHandler)1 DockerHandler (org.ballerinax.kubernetes.handlers.DockerHandler)1 HPAHandler (org.ballerinax.kubernetes.handlers.HPAHandler)1 HelmChartHandler (org.ballerinax.kubernetes.handlers.HelmChartHandler)1 IngressHandler (org.ballerinax.kubernetes.handlers.IngressHandler)1 JobHandler (org.ballerinax.kubernetes.handlers.JobHandler)1 PersistentVolumeClaimHandler (org.ballerinax.kubernetes.handlers.PersistentVolumeClaimHandler)1 ResourceQuotaHandler (org.ballerinax.kubernetes.handlers.ResourceQuotaHandler)1 SecretHandler (org.ballerinax.kubernetes.handlers.SecretHandler)1 ServiceHandler (org.ballerinax.kubernetes.handlers.ServiceHandler)1 IstioGatewayHandler (org.ballerinax.kubernetes.handlers.istio.IstioGatewayHandler)1 IstioVirtualServiceHandler (org.ballerinax.kubernetes.handlers.istio.IstioVirtualServiceHandler)1 OpenShiftBuildConfigHandler (org.ballerinax.kubernetes.handlers.openshift.OpenShiftBuildConfigHandler)1 OpenShiftImageStreamHandler (org.ballerinax.kubernetes.handlers.openshift.OpenShiftImageStreamHandler)1 OpenShiftRouteHandler (org.ballerinax.kubernetes.handlers.openshift.OpenShiftRouteHandler)1