UNPKG

@grucloud/module-k8s-crunchy-postgres

Version:

GruCloud Module for the Kubernetes Crunchy Data Postgres Operator

48 lines (30 loc) 1.18 kB
# GruCloud module for the Kubernetes Crunchy Data Postgres Operator This GruCloud module allows to deploy the [Crunchy Data Postgres Operator](https://github.com/CrunchyData/postgres-operator) The offical k8s manifest is downloaded, the k8s-manifest2code generates the GruCloud code from that manifest. ## How to consume this module ```sh npm i @grucloud/module-k8s-crunchy-postgres ``` In your _iac.js_ file, import the package: ```js const PostgresOperator = require("@grucloud/module-k8s-crunchy-postgres"); ``` Invoke the _createResources_ function with a K8sProvider instance ```js const postgresOperatorResources = await PostgresOperator.createResources({ provider, }); ``` ## Examples Have a look at the [example](https://github.com/grucloud/grucloud/tree/main/packages/modules/k8s/crunchy-postgres/example) ## Release a new version Modify the manifest version from the _download-manifest_ scripts sections of the _package.json_. Run the `download-manifest` npm script: ```sh npm run download-manifest ``` Run the _k8s-manifest2code_ to generate the new _resource.js_: ``` npm run gen-code ``` Ready for testing ? Go to the [example](./example/README.md)