Create components by using templates or add files to
components folder. For example:
You can also split manifests into multiple files and export them in
Export manifests to
module.exports in CommonJS modules or
export default in ES modules. It can be written in the following styles.
In a Function
In a Async Function
This feature is available since v1.0.0.
Arrays and functions in components are flattened. This is useful for reusing manifests across different components.
We use kubernetes-models by default. This package validates against Kubernetes OpenAPI schema.
Create a class with
validate() method and throw an error when the validation failed.