The tree node.
Labels applied to all resources in this chart.
This is an immutable copy.
Create a dependency between this Chart and other constructs. These can be other ApiObjects, Charts, or custom.
the dependencies to add.
Generates a app-unique name for an object given it's construct node path.
Different resource types may have different constraints on names
metadata.name). The previous version of the name generator was
compatible with DNS_SUBDOMAIN but not with DNS_LABEL.
Deployment names must comply with DNS_SUBDOMAIN while
Service names must comply with DNS_LABEL.
Since there is no formal specification for this, the default name generation scheme for kubernetes objects in cdk8s was changed to DNS_LABEL, since it’s the common denominator for all kubernetes resources (supposedly).
You can override this method if you wish to customize object names at the chart level.
The API object to generate a name for.
Renders this chart to a set of Kubernetes JSON resources.
array of resource manifests
Returns a string representation of this construct.
Return whether the given object is a Chart.
We do attribute detection since we can't reliably use 'instanceof'.
x is a construct.
Use this method instead of
instanceof to properly detect
instances, even when the construct library is symlinked.
constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class
Construct in each copy of the
is seen as a different class, and an instance of one class will not test as
instanceof the other class.
npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the
library can be accidentally installed, and
instanceof will behave
unpredictably. It is safest to avoid using
instanceof, and using
this type-testing method instead.
x is an object created from a class which extends
Finds the chart in which a node is defined.
a construct node
Generated using TypeDoc
The default namespace for all objects in this chart.