otomi-core icon indicating copy to clipboard operation
otomi-core copied to clipboard

otomi values merge/extract or import/export

Open Dunky13 opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. I would like to be able to "import"/"export" values from a single file to our values folder and vice versa.

Describe the solution you'd like Create a sub-command on otomi values that is either merge/extract or import/export to merge/import a single values yaml into the values folder and extract/export the values folder into a single file. This would make managing the values easier than it is right now.

Dunky13 avatar Oct 04 '21 08:10 Dunky13

Can you describe use cases?

Morriz avatar Oct 04 '21 09:10 Morriz

For development is makes it easier to have a single file that you can import over bootstrapped values. Having a single source of values, that you can quickly modify to test. We already have the code (for chart) to import that file, but this would extract it into a command for CLI as well. The export usecase would be, in regards of development/testing, easy when you have a values repo (cloned, or not) to extract/export the values into a single file, to quickly make changes, destroy cluster, share the file with others who can spin up the cluster easily with the same values (since it can't be cloned after destroy for example)

Dunky13 avatar Oct 05 '21 08:10 Dunky13

Like discussed in standup, we can already import with just VALUES_INPUT=/some/values.yaml otomi bootstrap.

Export I can see for sharing but we may already share a whole zipped env dir. We don't wish to store unencrypted values files in repos but encrypted env dirs are already online to share.

Anyway, if we are gonna add features that make things only look nicer, then lets focus on the ones that matter most to devs, and put this on low prio for now.

Morriz avatar Oct 07 '21 21:10 Morriz

I would like you to "seriously" consider the import as the VALUE_INPUT starts it in "CHART"-mode. Which behaves differently from CLI. It's minor, but important to know

Dunky13 avatar Oct 11 '21 08:10 Dunky13

already done

j-zimnowoda avatar Oct 09 '23 06:10 j-zimnowoda