Add configuration 🛠 features to your cdk8s project.
# my-config.yaml
# --------------
my-key:
key1: value1
// index.ts
// --------
import Config from 'cdk8s-config';
const CONFIG = await Config.fromFile('<path to your config yaml>');
const data = CONFIG.get();
// data = { 'my-key': { 'key1': 'value1' } }
$ npm i cdk8s-config
or
$ yarn add cdk8s-config
Check out the full documentation here: https://kumboleijo.github.io/cdk8s-config/
$ npx ts-node ./examples/1-basic/