Pkl as a Templating Engine for Crossplane Compositions #589
Avarei
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Everyone,
I've recently released an extension to Crossplane that allows it to use Pkl to render 'Managed Resources' like Kubernetes Manifests, or Cloud Resources.
Crossplane paves a path to create Kubernetes Custom Resource Definitions and composing logic what should happen with Custom Resources of that type.
This logic can now also be written in Pkl.
GitHub Repo
Marketplace
Here is list of tools used from the Pkl world to get all of it to work :)
k8s.contrib
from pkl-pantry to parse inputs, which contain, among other things Kubernetes Resourcesk8s.contrib.crd
from pkl-pantry to generate XRDs (Composite Resource Definitions) from yaml filesThe Package also ships with Modules to optionally develop everything that would have previously been written in Yaml using Pkl instead to allow for development without context-switches.
A full example is available in the repo at crossplane.contrib.example.
Beta Was this translation helpful? Give feedback.
All reactions