Skip to content

Example of using jsonnet (via yq) as a helm post-renderer

License

Notifications You must be signed in to change notification settings

PaulRudin/helm-jsonnet-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

helm-jsonnet-demo

This is a proof of concept illustration of how jsonnet (with the help of yq) can be used as a helm post-renderer (https://helm.sh/docs/topics/advanced/#post-rendering).

Instructions

helm template example --post-renderer ./yj.sh

You should see that each k8s object has the labels foo: bar and bar: foo

Then modify the file processors.jsonnet as you wish. Note that in this example each processor is applied to every k8s object in turn.

Motivation

When consuming third party helm charts you can only modify the resulting k8s objects to the extent that the chart author has anticipated your customisation use case and added a suitable interface. Post renderers allow for arbitrary changes to the k8s objects created from the chart's templates before helm actually applies them to your cluster.

About

Example of using jsonnet (via yq) as a helm post-renderer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published