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
The example here reveals the multi-steps necessary to create a klient.Client from a kubeconfig file and then inject that client into the environment's configuration.
It would be nice if the envconf.Config type provided a method to handle the injection of the client in one step similar to:
funcTestMain(m*testing.M){
testenv.Setup(
func(ctx context.Context, cfg*envconf.Config) (context.Context, error) {
cfg.WithKubeconfigFile(kubeconf_file_path) // this would create a new klient.Client, then inject it in the cfg
},
)
...
}
The text was updated successfully, but these errors were encountered:
The example here reveals the multi-steps necessary to create a klient.Client from a kubeconfig file and then inject that client into the environment's configuration.
e2e-framework/examples/k8s/main_test.go
Line 52 in 0402e81
It would be nice if the
envconf.Config
type provided a method to handle the injection of the client in one step similar to:The text was updated successfully, but these errors were encountered: