Slide 24
Slide 24 text
- Runs helm template and imports the yaml into memory
- Allows manipulation / interaction with all Helm chart resources
CDK8s Helm Support
export class MyChart extends Chart {
constructor(scope: Construct, id: string) {
super(scope, id);
new Helm(this, "redis", {
chart: "bitnami/redis",
values: {
sentinel: {
enabled: true,
},
},
});
}
}
const redis = new Helm(this, "redis", {
chart: "bitnami/redis",
values: {
sentinel: {
enabled: true,
},
},
});
const master = redis.apiObjects.find(
(o) => o.name === "foo-redis-master"
);
master?.metadata.addAnnotation(
"my.annotation",
"hey-there"
);