ytt icon indicating copy to clipboard operation
ytt copied to clipboard

Golang Intergartion with ytt

Open balu-ce opened this issue 2 years ago • 2 comments

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.

balu-ce avatar Dec 08 '22 07:12 balu-ce

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.

github-actions[bot] avatar Jan 18 '23 00:01 github-actions[bot]

@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

pivotaljohn avatar Jan 23 '23 16:01 pivotaljohn