This repository is my attempt to migrate a helm chart (for mysql) to a cdk8s module. If you'd like to read more about it check out the blog post on the Open Construct Foundation.
This code is not meant to be totally production worthy. There is a lot of refactoring I'd do to make things more readable and maintainable.
I tried to maintain reasonable parity with helm to encourage adoption.
In its current state, you shouldn't. But if you want to use this an example for how to migrate a helm chart to cdk8s, go right ahead.
To synth:
$ npm run build
Helm has the concept of Values files, which can be provided via the '-f' flag. This cdk8s chart also supports this convention:
$ npm run build -- -f src/variant-1.yaml
Unlike helm, you need to get the '--' to pass values through npm and into the main.js runtime.
Like helm, you can provide a namespace:
$ npm run build -- --namespace=testing
Like helm, you can set the release-name:
$ npm run build -- -n some-release-name
Submit PRs or Issues on github.