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

Generate all of values.yaml, values.schema.json, and values.go from a single source of truth #1081

Closed
2 tasks done
Tracked by #1095 ...
chrisseto opened this issue Mar 11, 2024 · 2 comments
Closed
2 tasks done
Tracked by #1095 ...
Assignees

Comments

@chrisseto
Copy link
Contributor

chrisseto commented Mar 11, 2024

Tasks

  1. chrisseto

JIRA Link: K8S-114

@chrisseto
Copy link
Contributor Author

I'm currently experimenting with https://github.com/omissis/go-jsonschema. It works quite well for generating the values.schema.json file.

We'd need to write our own values.yaml renderer and find a good way to preserve the comments as well.

@chrisseto chrisseto self-assigned this Mar 11, 2024
@chrisseto
Copy link
Contributor Author

For generating the values.yaml file, we'll probably have to use raw YAML nodes https://pkg.go.dev/gopkg.in/yaml.v3#Node so we can include comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant