You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or a Pull Request
N/A
Scope of your request
I need a new environment variable for the cluster command.
Describe the solution you'd like
Coming from KinD, I really like that the default cluster name can be changed using an environment variable (KIND_CLUSTER_NAME), not just a flag.
The rationale behind this feature is that even when developers couldn't care less to specify a custom name, it can still be controlled through an environment variable (loaded with direnv for example).
Describe alternatives you've considered
A potential alternative is automatically loading a config file when it's present (or set using an environment variable).
As long as a project default setting (eg. through env vars using direnv) can be applied and the user doesn't need anything, but k3d cluster create, it's a viable solution.
Admittedly, this is a convenience feature.
The text was updated successfully, but these errors were encountered:
From what I can tell, KinD merges the configuration (config file, environment, flag) and determines the final name based on that.
I'm guessing some similar solution should work in this case as well.
As for the implementation: it really depends on how k3d configuration is implemented which I'm not really familiar with. I'd have to delve into the code to figure that out.
We're using cobra for CLI and viper for general config. Both have options to configure loading env vars.
Inside config files, we're already replacing generic environment variables.
@tesla59 thanks for chiming in and taking over, looking forward to your PR 👍
Is your feature request related to a problem or a Pull Request
N/A
Scope of your request
I need a new environment variable for the
cluster
command.Describe the solution you'd like
Coming from KinD, I really like that the default cluster name can be changed using an environment variable (
KIND_CLUSTER_NAME
), not just a flag.The rationale behind this feature is that even when developers couldn't care less to specify a custom name, it can still be controlled through an environment variable (loaded with direnv for example).
Describe alternatives you've considered
A potential alternative is automatically loading a config file when it's present (or set using an environment variable).
As long as a project default setting (eg. through env vars using direnv) can be applied and the user doesn't need anything, but
k3d cluster create
, it's a viable solution.Admittedly, this is a convenience feature.
The text was updated successfully, but these errors were encountered: