Package org.cdk8s
Class HelmProps.Builder
- java.lang.Object
-
- org.cdk8s.HelmProps.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HelmProps
build()
Builds the configured instance.HelmProps.Builder
chart(String chart)
Sets the value ofHelmProps.getChart()
HelmProps.Builder
helmExecutable(String helmExecutable)
Sets the value ofHelmProps.getHelmExecutable()
HelmProps.Builder
helmFlags(List<String> helmFlags)
Sets the value ofHelmProps.getHelmFlags()
HelmProps.Builder
namespace(String namespace)
Sets the value ofHelmProps.getNamespace()
HelmProps.Builder
releaseName(String releaseName)
Sets the value ofHelmProps.getReleaseName()
HelmProps.Builder
repo(String repo)
Sets the value ofHelmProps.getRepo()
HelmProps.Builder
values(Map<String,? extends Object> values)
Sets the value ofHelmProps.getValues()
HelmProps.Builder
version(String version)
Sets the value ofHelmProps.getVersion()
-
-
-
Method Detail
-
chart
@Stability(Stable) public HelmProps.Builder chart(String chart)
Sets the value ofHelmProps.getChart()
- Parameters:
chart
- The chart name to use. It can be a chart from a helm repository or a local directory. This parameter is required. This name is passed tohelm template
and has all the relevant semantics.- Returns:
this
-
helmExecutable
@Stability(Stable) public HelmProps.Builder helmExecutable(String helmExecutable)
Sets the value ofHelmProps.getHelmExecutable()
- Parameters:
helmExecutable
- The local helm executable to use in order to create the manifest the chart.- Returns:
this
-
helmFlags
@Stability(Stable) public HelmProps.Builder helmFlags(List<String> helmFlags)
Sets the value ofHelmProps.getHelmFlags()
- Parameters:
helmFlags
- Additional flags to add to the `helm` execution.- Returns:
this
-
namespace
@Stability(Stable) public HelmProps.Builder namespace(String namespace)
Sets the value ofHelmProps.getNamespace()
- Parameters:
namespace
- Scope all resources in to a given namespace.- Returns:
this
-
releaseName
@Stability(Stable) public HelmProps.Builder releaseName(String releaseName)
Sets the value ofHelmProps.getReleaseName()
- Parameters:
releaseName
- The release name.- Returns:
this
-
repo
@Stability(Stable) public HelmProps.Builder repo(String repo)
Sets the value ofHelmProps.getRepo()
- Parameters:
repo
- Chart repository url where to locate the requested chart.- Returns:
this
-
values
@Stability(Stable) public HelmProps.Builder values(Map<String,? extends Object> values)
Sets the value ofHelmProps.getValues()
- Parameters:
values
- Values to pass to the chart.- Returns:
this
-
version
@Stability(Stable) public HelmProps.Builder version(String version)
Sets the value ofHelmProps.getVersion()
- Parameters:
version
- Version constraint for the chart version to use. This constraint can be a specific tag (e.g. 1.1.1) or it may reference a valid range (e.g. ^2.0.0). If this is not specified, the latest version is usedThis name is passed to
helm template --version
and has all the relevant semantics.- Returns:
this
-
build
@Stability(Stable) public HelmProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HelmProps>
- Returns:
- a new instance of
HelmProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-