It would be nice to have a global configuration file for k3d for setting some things so that users would not need to do that every time they run in every command line.
Users could create a configuration file, maybe in some path like $HOME/config/k3d or $HOME/.k3d/config, where they could add some default values for:
Sample configuration file:
defaults:
registry:
autostart: true
volume: the-registry-volume
api-port: 6443
mounts:
- /home/user/my-dir:/src:rw
labels:
creator: k3d
Hello
I'm currently developing this feature for my company. We want to be able to configure some default values for the CLI flags, and a hook system (ex: run this executable after/before) this command.
I will push a PR soon.
Hi @msaunois-dzr how's your progress? :)
Hi @iwilltry42!
Sorry my company has changed its priorities with the coronavirus crisis and I no longer work on this project for the moment.
I will ask to my manager to be re-assigned to my task as soon as possible.
Hi @msaunois-dzr , no worries, i totally understand the different priorities in this situation..
I also think, that things with the configuration file will be totally different and hopefully easier with k3d v3 :)
Most helpful comment
Hello
I'm currently developing this feature for my company. We want to be able to configure some default values for the CLI flags, and a hook system (ex: run this executable after/before) this command.
I will push a PR soon.