Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Golang Intergartion with ytt #783

Open
balu-ce opened this issue Dec 8, 2022 · 2 comments
Open

Golang Intergartion with ytt #783

balu-ce opened this issue Dec 8, 2022 · 2 comments
Labels
helping with an issue Debugging happening to identify the problem

Comments

@balu-ce
Copy link

balu-ce commented Dec 8, 2022

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 balu-ce added carvel triage This issue has not yet been triaged for relevance enhancement This issue is a feature request labels Dec 8, 2022
@github-actions
Copy link

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 github-actions bot added the stale This issue has had no activity for a while and will be closed soon label Jan 18, 2023
@pivotaljohn
Copy link
Contributor

@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

@jtigger jtigger added helping with an issue Debugging happening to identify the problem and removed enhancement This issue is a feature request carvel triage This issue has not yet been triaged for relevance stale This issue has had no activity for a while and will be closed soon labels Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helping with an issue Debugging happening to identify the problem
Projects
Status: To Triage
Development

No branches or pull requests

3 participants