Class HelmChartOptions.Builder
java.lang.Object
software.amazon.awscdk.services.eks.HelmChartOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HelmChartOptions>
- Enclosing interface:
HelmChartOptions
@Stability(Stable)
public static final class HelmChartOptions.Builder
extends Object
implements software.amazon.jsii.Builder<HelmChartOptions>
A builder for
HelmChartOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofHelmChartOptions.getAtomic()build()Builds the configured instance.Sets the value ofHelmChartOptions.getChart()chartAsset(Asset chartAsset) Sets the value ofHelmChartOptions.getChartAsset()createNamespace(Boolean createNamespace) Sets the value ofHelmChartOptions.getCreateNamespace()Sets the value ofHelmChartOptions.getNamespace()Sets the value ofHelmChartOptions.getRelease()removalPolicy(RemovalPolicy removalPolicy) Sets the value ofHelmChartOptions.getRemovalPolicy()repository(String repository) Sets the value ofHelmChartOptions.getRepository()Sets the value ofHelmChartOptions.getSkipCrds()Sets the value ofHelmChartOptions.getTimeout()Sets the value ofHelmChartOptions.getValues()Sets the value ofHelmChartOptions.getVersion()Sets the value ofHelmChartOptions.getWait()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
atomic
Sets the value ofHelmChartOptions.getAtomic()- Parameters:
atomic- Whether or not Helm should treat this operation as atomic;. if set, upgrade process rolls back changes made in case of failed upgrade. The --wait flag will be set automatically if --atomic is used.- Returns:
this
-
chart
Sets the value ofHelmChartOptions.getChart()- Parameters:
chart- The name of the chart. Either this orchartAssetmust be specified.- Returns:
this
-
chartAsset
Sets the value ofHelmChartOptions.getChartAsset()- Parameters:
chartAsset- The chart in the form of an asset. Either this orchartmust be specified.- Returns:
this
-
createNamespace
Sets the value ofHelmChartOptions.getCreateNamespace()- Parameters:
createNamespace- create namespace if not exist.- Returns:
this
-
namespace
Sets the value ofHelmChartOptions.getNamespace()- Parameters:
namespace- The Kubernetes namespace scope of the requests.- Returns:
this
-
release
Sets the value ofHelmChartOptions.getRelease()- Parameters:
release- The name of the release.- Returns:
this
-
removalPolicy
Sets the value ofHelmChartOptions.getRemovalPolicy()- Parameters:
removalPolicy- The removal policy applied to the custom resource that manages the Helm chart. The removal policy controls what happens to the resource if it stops being managed by CloudFormation. This can happen in one of three situations:- The resource is removed from the template, so CloudFormation stops managing it
- A change to the resource is made that requires it to be replaced, so CloudFormation stops managing it
- The stack is deleted, so CloudFormation stops managing all resources in it
- Returns:
this
-
repository
Sets the value ofHelmChartOptions.getRepository()- Parameters:
repository- The repository which contains the chart. For example: https://charts.helm.sh/stable/- Returns:
this
-
skipCrds
Sets the value ofHelmChartOptions.getSkipCrds()- Parameters:
skipCrds- if set, no CRDs will be installed.- Returns:
this
-
timeout
Sets the value ofHelmChartOptions.getTimeout()- Parameters:
timeout- Amount of time to wait for any individual Kubernetes operation. Maximum 15 minutes.- Returns:
this
-
values
Sets the value ofHelmChartOptions.getValues()- Parameters:
values- The values to be used by the chart. For nested values use a nested dictionary. For example: values: { installationCRDs: true, webhook: { port: 9443 } }- Returns:
this
-
version
Sets the value ofHelmChartOptions.getVersion()- Parameters:
version- The chart version to install.- Returns:
this
-
wait
Sets the value ofHelmChartOptions.getWait()- Parameters:
wait- Whether or not Helm should wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment, StatefulSet, or ReplicaSet are in a ready state before marking the release as successful.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HelmChartOptions>- Returns:
- a new instance of
HelmChartOptions - Throws:
NullPointerException- if any required attribute was not provided
-