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
-
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()
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 orchartAsset
must be specified.- Returns:
this
-
chartAsset
Sets the value ofHelmChartOptions.getChartAsset()
- Parameters:
chartAsset
- The chart in the form of an asset. Either this orchart
must 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
-
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:
build
in interfacesoftware.amazon.jsii.Builder<HelmChartOptions>
- Returns:
- a new instance of
HelmChartOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-