It has been a long time since the last stable release v0.9. Recently, I decide to implement some features that I always want to have at work. Hope these new features can also help you.
In v1.0, arrays and functions in components are flattened. This is useful for sharing manifests across components.
For instance, a database in Kubernetes is typically composed by a
Deployment and a
Service. To include a database in a component, before v1.0, you have to flatten these two manifests in the component by yourself. After v1.0, they are flattened automatically.
In this way, a database can be used as a single resource, which can be used everywhere in your components.
More Information in
There was only
ValidationError before v1.0. Sometimes it might be difficult to find where the error is. In v1.0,
name are added to
ValidationError. The following is an example of the new error message.
Loading Kubernetes YAML
@kosko/yaml reads YAML files and transforms data into kubernetes-models classes, so your manifests are validated against Kubernetes OpenAPI schema.
This package works better with "nested manifests", so please don't forget to upgrade to Kosko v1.0 first.
For more details, please check here.
- Drop support for Node.js 8.
- The type of
ValidationError.index is changed from
- The type of
Manifest.data is changed from