io.ap4k.openshift.config.OpenshiftConfig Maven / Gradle / Ivy
The newest version!
package io.ap4k.openshift.config;
import io.ap4k.kubernetes.config.AzureDiskVolume;
import io.ap4k.kubernetes.config.PersistentVolumeClaimVolume;
import io.ap4k.kubernetes.config.Port;
import io.ap4k.kubernetes.config.Label;
import io.ap4k.kubernetes.config.Mount;
import java.lang.String;
import io.ap4k.kubernetes.config.Env;
import io.ap4k.kubernetes.config.Probe;
import io.ap4k.kubernetes.config.Container;
import io.ap4k.kubernetes.annotation.ServiceType;
import io.sundr.builder.annotations.Buildable;
import io.ap4k.kubernetes.config.AwsElasticBlockStoreVolume;
import io.ap4k.kubernetes.config.ConfigMapVolume;
import io.ap4k.kubernetes.config.ConfigKey;
import io.ap4k.kubernetes.config.SecretVolume;
import io.ap4k.kubernetes.config.BaseConfig;
import io.ap4k.kubernetes.config.Annotation;
import io.ap4k.kubernetes.config.AzureFileVolume;
import io.ap4k.project.Project;
import io.ap4k.kubernetes.annotation.ImagePullPolicy;
import java.lang.Object;
import java.util.Map;
import io.ap4k.kubernetes.config.GitRepoVolume;
@Buildable(builderPackage = "io.ap4k.deps.kubernetes.api.builder") public class OpenshiftConfig extends BaseConfig{
private boolean buildResourceGenerationEnabled = true;
private String builderImage = "fabric8/s2i-java:2.3";
private io.ap4k.kubernetes.config.Env[] buildEnvVars = new io.ap4k.kubernetes.config.Env[0];
private boolean autoBuildEnabled = false;
public OpenshiftConfig(){
}
public OpenshiftConfig(Project project,Map attributes,String group,String name,String version,io.ap4k.kubernetes.config.Container[] initContainers,io.ap4k.kubernetes.config.Label[] labels,io.ap4k.kubernetes.config.Annotation[] annotations,io.ap4k.kubernetes.config.Env[] envVars,String workingDir,String[] command,String[] arguments,int replicas,String serviceAccount,String host,io.ap4k.kubernetes.config.Port[] ports,ServiceType serviceType,io.ap4k.kubernetes.config.PersistentVolumeClaimVolume[] pvcVolumes,io.ap4k.kubernetes.config.SecretVolume[] secretVolumes,io.ap4k.kubernetes.config.ConfigMapVolume[] configMapVolumes,io.ap4k.kubernetes.config.GitRepoVolume[] gitRepoVolumes,io.ap4k.kubernetes.config.AwsElasticBlockStoreVolume[] awsElasticBlockStoreVolumes,io.ap4k.kubernetes.config.AzureDiskVolume[] azureDiskVolumes,io.ap4k.kubernetes.config.AzureFileVolume[] azureFileVolumes,io.ap4k.kubernetes.config.Mount[] mounts,ImagePullPolicy imagePullPolicy,io.ap4k.kubernetes.config.Probe livenessProbe,io.ap4k.kubernetes.config.Probe readinessProbe,io.ap4k.kubernetes.config.Container[] sidecars,boolean expose,boolean autoDeployEnabled,boolean buildResourceGenerationEnabled,String builderImage,io.ap4k.kubernetes.config.Env[] buildEnvVars,boolean autoBuildEnabled){
super(project, attributes, group, name, version, initContainers, labels, annotations, envVars, workingDir, command, arguments, replicas, serviceAccount, host, ports, serviceType, pvcVolumes, secretVolumes, configMapVolumes, gitRepoVolumes, awsElasticBlockStoreVolumes, azureDiskVolumes, azureFileVolumes, mounts, imagePullPolicy, livenessProbe, readinessProbe, sidecars, expose, autoDeployEnabled);
this.buildResourceGenerationEnabled = buildResourceGenerationEnabled;
this.builderImage = builderImage != null ? builderImage : "fabric8/s2i-java:2.3";
this.buildEnvVars = buildEnvVars != null ? buildEnvVars : new io.ap4k.kubernetes.config.Env[0];
this.autoBuildEnabled = autoBuildEnabled;
}
public boolean isBuildResourceGenerationEnabled(){
return this.buildResourceGenerationEnabled;
}
public String getBuilderImage(){
return this.builderImage;
}
public io.ap4k.kubernetes.config.Env[] getBuildEnvVars(){
return this.buildEnvVars;
}
public boolean isAutoBuildEnabled(){
return this.autoBuildEnabled;
}
public static OpenshiftConfigBuilder newOpenshiftConfigBuilder(){
return new io.ap4k.openshift.config.OpenshiftConfigBuilder();
}
}