Package org.cdk8s
Class Chart.Builder
- java.lang.Object
-
- org.cdk8s.Chart.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Chart
build()
static Chart.Builder
create(software.constructs.Construct scope, String id)
Chart.Builder
disableResourceNameHashes(Boolean disableResourceNameHashes)
The autogenerated resource name by default is suffixed with a stable hash of the construct path.Chart.Builder
labels(Map<String,String> labels)
Labels to apply to all resources in this chart.Chart.Builder
namespace(String namespace)
The default namespace for all objects defined in this chart (directly or indirectly).
-
-
-
Method Detail
-
create
@Stability(Stable) public static Chart.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
Chart.Builder
.
-
disableResourceNameHashes
@Stability(Stable) public Chart.Builder disableResourceNameHashes(Boolean disableResourceNameHashes)
The autogenerated resource name by default is suffixed with a stable hash of the construct path.Setting this property to true drops the hash suffix.
Default: false
- Parameters:
disableResourceNameHashes
- The autogenerated resource name by default is suffixed with a stable hash of the construct path. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public Chart.Builder labels(Map<String,String> labels)
Labels to apply to all resources in this chart.Default: - no common labels
- Parameters:
labels
- Labels to apply to all resources in this chart. This parameter is required.- Returns:
this
-
namespace
@Stability(Stable) public Chart.Builder namespace(String namespace)
The default namespace for all objects defined in this chart (directly or indirectly).This namespace will only apply to objects that don't have a
namespace
explicitly defined for them.Default: - no namespace is synthesized (usually this implies "default")
- Parameters:
namespace
- The default namespace for all objects defined in this chart (directly or indirectly). This parameter is required.- Returns:
this
-
-