openshift / kube-compare

A Kubectl plugin to allow to compare a known valid reference configuration and a set of specific cluster configuration CRs.
Apache License 2.0
8 stars 8 forks source link

Document how to use of go-template custom func or external library (sprig) functions #20

Open pixelsoccupied opened 1 month ago

pixelsoccupied commented 1 month ago

https://masterminds.github.io/sprig/

nocturnalastro commented 1 month ago

Could move the custom functions into there own package and then link from the docs to the page on https://pkg.go.dev

pixelsoccupied commented 3 weeks ago

@nocturnalastro sorry just update the title to make it a bit more clear.

We have imported Sprig as one of the dependencies which allows us to use funcs like has to test if an element is persent etc....was thinking if it can be documented

Also we can have custom func written in go-template contained with a CR (a.k.a template function) to validate stuff further

pixelsoccupied commented 3 weeks ago

Could move the custom functions into there own package and then link from the docs to the page on https://pkg.go.dev/

But that's a good idea!

pixelsoccupied commented 2 weeks ago

/documentation