Package io.fabric8.openshift.api.model
Class BuildSource
- java.lang.Object
-
- io.fabric8.openshift.api.model.BuildSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<BuildSourceBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class BuildSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<BuildSourceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
BuildSource is the SCM used for the build.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BuildSource()No args constructor for use in serializationBuildSource(BinaryBuildSource binary, List<ConfigMapBuildSource> configMaps, String contextDir, String dockerfile, GitBuildSource git, List<ImageSource> images, List<SecretBuildSource> secrets, io.fabric8.kubernetes.api.model.LocalObjectReference sourceSecret, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildSourceBuilderedit()Map<String,Object>getAdditionalProperties()BinaryBuildSourcegetBinary()BuildSource is the SCM used for the build.List<ConfigMapBuildSource>getConfigMaps()configMaps represents a list of configMaps and their destinations that will be used for the build.StringgetContextDir()contextDir specifies the sub-directory where the source code for the application exists.StringgetDockerfile()dockerfile is the raw contents of a Dockerfile which should be built.GitBuildSourcegetGit()BuildSource is the SCM used for the build.List<ImageSource>getImages()images describes a set of images to be used to provide source for the buildList<SecretBuildSource>getSecrets()secrets represents a list of secrets and their destinations that will be used only for the build.io.fabric8.kubernetes.api.model.LocalObjectReferencegetSourceSecret()BuildSource is the SCM used for the build.StringgetType()type of build input to acceptvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetBinary(BinaryBuildSource binary)BuildSource is the SCM used for the build.voidsetConfigMaps(List<ConfigMapBuildSource> configMaps)configMaps represents a list of configMaps and their destinations that will be used for the build.voidsetContextDir(String contextDir)contextDir specifies the sub-directory where the source code for the application exists.voidsetDockerfile(String dockerfile)dockerfile is the raw contents of a Dockerfile which should be built.voidsetGit(GitBuildSource git)BuildSource is the SCM used for the build.voidsetImages(List<ImageSource> images)images describes a set of images to be used to provide source for the buildvoidsetSecrets(List<SecretBuildSource> secrets)secrets represents a list of secrets and their destinations that will be used only for the build.voidsetSourceSecret(io.fabric8.kubernetes.api.model.LocalObjectReference sourceSecret)BuildSource is the SCM used for the build.voidsetType(String type)type of build input to acceptBuildSourceBuildertoBuilder()
-
-
-
Constructor Detail
-
BuildSource
public BuildSource()
No args constructor for use in serialization
-
BuildSource
public BuildSource(BinaryBuildSource binary, List<ConfigMapBuildSource> configMaps, String contextDir, String dockerfile, GitBuildSource git, List<ImageSource> images, List<SecretBuildSource> secrets, io.fabric8.kubernetes.api.model.LocalObjectReference sourceSecret, String type)
-
-
Method Detail
-
getBinary
public BinaryBuildSource getBinary()
BuildSource is the SCM used for the build.
-
setBinary
public void setBinary(BinaryBuildSource binary)
BuildSource is the SCM used for the build.
-
getConfigMaps
public List<ConfigMapBuildSource> getConfigMaps()
configMaps represents a list of configMaps and their destinations that will be used for the build.
-
setConfigMaps
public void setConfigMaps(List<ConfigMapBuildSource> configMaps)
configMaps represents a list of configMaps and their destinations that will be used for the build.
-
getContextDir
public String getContextDir()
contextDir specifies the sub-directory where the source code for the application exists. This allows to have buildable sources in directory other than root of repository.
-
setContextDir
public void setContextDir(String contextDir)
contextDir specifies the sub-directory where the source code for the application exists. This allows to have buildable sources in directory other than root of repository.
-
getDockerfile
public String getDockerfile()
dockerfile is the raw contents of a Dockerfile which should be built. When this option is specified, the FROM may be modified based on your strategy base image and additional ENV stanzas from your strategy environment will be added after the FROM, but before the rest of your Dockerfile stanzas. The Dockerfile source type may be used with other options like git - in those cases the Git repo will have any innate Dockerfile replaced in the context dir.
-
setDockerfile
public void setDockerfile(String dockerfile)
dockerfile is the raw contents of a Dockerfile which should be built. When this option is specified, the FROM may be modified based on your strategy base image and additional ENV stanzas from your strategy environment will be added after the FROM, but before the rest of your Dockerfile stanzas. The Dockerfile source type may be used with other options like git - in those cases the Git repo will have any innate Dockerfile replaced in the context dir.
-
getGit
public GitBuildSource getGit()
BuildSource is the SCM used for the build.
-
setGit
public void setGit(GitBuildSource git)
BuildSource is the SCM used for the build.
-
getImages
public List<ImageSource> getImages()
images describes a set of images to be used to provide source for the build
-
setImages
public void setImages(List<ImageSource> images)
images describes a set of images to be used to provide source for the build
-
getSecrets
public List<SecretBuildSource> getSecrets()
secrets represents a list of secrets and their destinations that will be used only for the build.
-
setSecrets
public void setSecrets(List<SecretBuildSource> secrets)
secrets represents a list of secrets and their destinations that will be used only for the build.
-
getSourceSecret
public io.fabric8.kubernetes.api.model.LocalObjectReference getSourceSecret()
BuildSource is the SCM used for the build.
-
setSourceSecret
public void setSourceSecret(io.fabric8.kubernetes.api.model.LocalObjectReference sourceSecret)
BuildSource is the SCM used for the build.
-
getType
public String getType()
type of build input to accept
-
setType
public void setType(String type)
type of build input to accept
-
edit
public BuildSourceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<BuildSourceBuilder>
-
toBuilder
public BuildSourceBuilder toBuilder()
-
-