K3d: [FEATURE] global configuration file for k3d

Created on 10 Mar 2020  路  4Comments  路  Source: rancher/k3d

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:

  • enabling the registry by default
  • specifying the volume for the registry
  • specifying a default API port
    ...

Sample configuration file:

defaults:
  registry:
    autostart: true
    volume: the-registry-volume
  api-port: 6443
  mounts:
    - /home/user/my-dir:/src:rw
  labels:
    creator: k3d
enhancement

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.

All 4 comments

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 :)

Was this page helpful?
0 / 5 - 0 ratings