ytt
ytt copied to clipboard
Golang Intergartion with ytt
I am trying to generate data/values dynamically using golang
Current Code :
dvs := []string{"x=hello", "y=world"}
templatingOptions := yttcmd.NewOptions()
input, err := templatesAsInput(tpl...)
if err != nil {
return "", err
}
templatingOptions.DataValuesFlags.KVsFromYAML = dvs
Is there is way where I can pass a data values directly via structure or map in golang ?
If there is any, pls share the code snippet.
This issue is being marked as stale due to a long period of inactivity and will be closed in 5 days if there is no response.
@balu-ce apologies for the delay; we intend to answer more quickly, but have had a lot on our plate, recently.
check this out: https://github.com/carvel-dev/ytt/blob/develop/examples/integrating-with-ytt/apis.md