ksctl / cli

Simplified Kubernetes Clusters Lifecycle Management (CLI)
https://docs.ksctl.com
Apache License 2.0
5 stars 0 forks source link

enhancement(Storage): Provide a command-line argument to choose between different storage solutions #17

Closed dipankardas011 closed 6 months ago

dipankardas011 commented 6 months ago

Why do we need it?

currently the storage to be used is hardcoded! https://github.com/ksctl/cli/blob/1081db267af14d5f0ae16bf6548b0a7aa0e3afa8/cli/cmd/root.go#L83

What it will bring?

Need to add a flag for storage to https://github.com/ksctl/cli/blob/1081db267af14d5f0ae16bf6548b0a7aa0e3afa8/cli/cmd/flags.go

and use it to get the valid values and assign to the value to cli.Client.Metadata.StateLocation

Note it should be before calling the InitialStorageFactory()

Check Contribution's guidelines