This repository contains a collection of jsonnet libraries that are automatically generated using k8s-gen. The libraries are not being published to the jsonnet-libs repository because they do not match the same use case as the libraries there.
The libraries published here are not necessarily Kubernetes related. They are just libraries that are generated using the same tooling.
You can find the documentation for the libraries by following this link.
You can use Jsonnet Bundler to install the libraries by running the following command:
jb install github.com/EmbarkStudios/jsonnet-libs/<library>@<version>Once installed, you can import the library in your jsonnet code:
local lib = import 'github.com/EmbarkStudios/jsonnet-libs/<library>/<lib-version>.libsonnet';Here is an example of how you can use the backstage library:
local backstage = (import "github.com/EmbarkStudios/jsonnet-libs/backstage/v1alpha1/main.libsonnet").backstage;
local component = backstage.v1alpha1.component;
component.new("Hello world", "Hello world service", "group:devs")The above example will generate the service component in the backstage format.
We welcome community contributions to this project.
Please read our Contributor Guide for more information on how to get started. Please also read our Contributor Terms before you make any contributions.
Any contribution intentionally submitted for inclusion in an Embark Studios project, shall comply with the Rust standard licensing model (MIT OR Apache 2.0) and therefore be dual licensed as described below, without any additional terms or conditions:
This contribution is dual licensed under EITHER OF
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
For clarity, "your" refers to Embark or any other licensee/user of the contribution.