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
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
.
-
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
-
-