Package com.oracle.bmc.devops.model
Class OkeHelmChartDeployStage.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.OkeHelmChartDeployStage.Builder
-
- Enclosing class:
- OkeHelmChartDeployStage
public static class OkeHelmChartDeployStage.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public OkeHelmChartDeployStage.Builder id(String id)
-
description
public OkeHelmChartDeployStage.Builder description(String description)
-
displayName
public OkeHelmChartDeployStage.Builder displayName(String displayName)
-
projectId
public OkeHelmChartDeployStage.Builder projectId(String projectId)
-
deployPipelineId
public OkeHelmChartDeployStage.Builder deployPipelineId(String deployPipelineId)
-
compartmentId
public OkeHelmChartDeployStage.Builder compartmentId(String compartmentId)
-
timeCreated
public OkeHelmChartDeployStage.Builder timeCreated(Date timeCreated)
-
timeUpdated
public OkeHelmChartDeployStage.Builder timeUpdated(Date timeUpdated)
-
lifecycleState
public OkeHelmChartDeployStage.Builder lifecycleState(DeployStage.LifecycleState lifecycleState)
-
lifecycleDetails
public OkeHelmChartDeployStage.Builder lifecycleDetails(String lifecycleDetails)
-
deployStagePredecessorCollection
public OkeHelmChartDeployStage.Builder deployStagePredecessorCollection(DeployStagePredecessorCollection deployStagePredecessorCollection)
-
freeformTags
public OkeHelmChartDeployStage.Builder freeformTags(Map<String,String> freeformTags)
-
definedTags
public OkeHelmChartDeployStage.Builder definedTags(Map<String,Map<String,Object>> definedTags)
-
systemTags
public OkeHelmChartDeployStage.Builder systemTags(Map<String,Map<String,Object>> systemTags)
-
okeClusterDeployEnvironmentId
public OkeHelmChartDeployStage.Builder okeClusterDeployEnvironmentId(String okeClusterDeployEnvironmentId)
Kubernetes cluster environment OCID for deployment.- Parameters:
okeClusterDeployEnvironmentId
- the value to set- Returns:
- this builder
-
helmChartDeployArtifactId
public OkeHelmChartDeployStage.Builder helmChartDeployArtifactId(String helmChartDeployArtifactId)
Helm chart artifact OCID.- Parameters:
helmChartDeployArtifactId
- the value to set- Returns:
- this builder
-
valuesArtifactIds
public OkeHelmChartDeployStage.Builder valuesArtifactIds(List<String> valuesArtifactIds)
List of values.yaml file artifact OCIDs.- Parameters:
valuesArtifactIds
- the value to set- Returns:
- this builder
-
releaseName
public OkeHelmChartDeployStage.Builder releaseName(String releaseName)
Release name of the Helm chart.- Parameters:
releaseName
- the value to set- Returns:
- this builder
-
isUninstallOnStageDelete
public OkeHelmChartDeployStage.Builder isUninstallOnStageDelete(Boolean isUninstallOnStageDelete)
Uninstall the Helm chart release on deleting the stage.- Parameters:
isUninstallOnStageDelete
- the value to set- Returns:
- this builder
-
helmCommandArtifactIds
public OkeHelmChartDeployStage.Builder helmCommandArtifactIds(List<String> helmCommandArtifactIds)
List of Helm command artifact OCIDs.- Parameters:
helmCommandArtifactIds
- the value to set- Returns:
- this builder
-
purpose
public OkeHelmChartDeployStage.Builder purpose(OkeHelmChartDeployStage.Purpose purpose)
The purpose of running this Helm stage- Parameters:
purpose
- the value to set- Returns:
- this builder
-
namespace
public OkeHelmChartDeployStage.Builder namespace(String namespace)
Default namespace to be used for Kubernetes deployment when not specified in the manifest.- Parameters:
namespace
- the value to set- Returns:
- this builder
-
timeoutInSeconds
public OkeHelmChartDeployStage.Builder timeoutInSeconds(Integer timeoutInSeconds)
Time to wait for execution of a helm stage.Defaults to 300 seconds.
- Parameters:
timeoutInSeconds
- the value to set- Returns:
- this builder
-
rollbackPolicy
public OkeHelmChartDeployStage.Builder rollbackPolicy(DeployStageRollbackPolicy rollbackPolicy)
-
setValues
public OkeHelmChartDeployStage.Builder setValues(HelmSetValueCollection setValues)
-
setString
public OkeHelmChartDeployStage.Builder setString(HelmSetValueCollection setString)
-
areHooksEnabled
public OkeHelmChartDeployStage.Builder areHooksEnabled(Boolean areHooksEnabled)
Disable pre/post upgrade hooks.Set to false by default.
- Parameters:
areHooksEnabled
- the value to set- Returns:
- this builder
-
shouldReuseValues
public OkeHelmChartDeployStage.Builder shouldReuseValues(Boolean shouldReuseValues)
During upgrade, reuse the values of the last release and merge overrides from the command line.Set to false by default.
- Parameters:
shouldReuseValues
- the value to set- Returns:
- this builder
-
shouldResetValues
public OkeHelmChartDeployStage.Builder shouldResetValues(Boolean shouldResetValues)
During upgrade, reset the values to the ones built into the chart.It overrides shouldReuseValues. Set to false by default.
- Parameters:
shouldResetValues
- the value to set- Returns:
- this builder
-
isForceEnabled
public OkeHelmChartDeployStage.Builder isForceEnabled(Boolean isForceEnabled)
Force resource update through delete; or if required, recreate.Set to false by default.
- Parameters:
isForceEnabled
- the value to set- Returns:
- this builder
-
shouldCleanupOnFail
public OkeHelmChartDeployStage.Builder shouldCleanupOnFail(Boolean shouldCleanupOnFail)
Allow deletion of new resources created during when an upgrade fails.Set to false by default.
- Parameters:
shouldCleanupOnFail
- the value to set- Returns:
- this builder
-
maxHistory
public OkeHelmChartDeployStage.Builder maxHistory(Integer maxHistory)
Limit the maximum number of revisions saved per release.Use 0 for no limit. Set to 10 by default
- Parameters:
maxHistory
- the value to set- Returns:
- this builder
-
shouldSkipCrds
public OkeHelmChartDeployStage.Builder shouldSkipCrds(Boolean shouldSkipCrds)
If set, no CRDs are installed.By default, CRDs are installed only if they are not present already. Set to false by default.
- Parameters:
shouldSkipCrds
- the value to set- Returns:
- this builder
-
shouldSkipRenderSubchartNotes
public OkeHelmChartDeployStage.Builder shouldSkipRenderSubchartNotes(Boolean shouldSkipRenderSubchartNotes)
If set, renders subchart notes along with the parent.Set to false by default.
- Parameters:
shouldSkipRenderSubchartNotes
- the value to set- Returns:
- this builder
-
shouldNotWait
public OkeHelmChartDeployStage.Builder shouldNotWait(Boolean shouldNotWait)
Waits until all the resources are in a ready state to mark the release as successful.Set to false by default.
- Parameters:
shouldNotWait
- the value to set- Returns:
- this builder
-
isDebugEnabled
public OkeHelmChartDeployStage.Builder isDebugEnabled(Boolean isDebugEnabled)
Enables helm –debug option to stream output to tf stdout.Set to false by default.
- Parameters:
isDebugEnabled
- the value to set- Returns:
- this builder
-
build
public OkeHelmChartDeployStage build()
-
copy
public OkeHelmChartDeployStage.Builder copy(OkeHelmChartDeployStage model)
-
-