NewDefaultClient creates the new default kube client from the active context @Factory
()
| 98 | |
| 99 | // NewDefaultClient creates the new default kube client from the active context @Factory |
| 100 | func NewDefaultClient() (Client, error) { |
| 101 | return NewClientFromContext("", "", false, kubeconfig.NewLoader()) |
| 102 | } |
| 103 | |
| 104 | // NewClientFromContext creates a new kubernetes client from given context @Factory |
| 105 | func NewClientFromContext(context, namespace string, switchContext bool, kubeLoader kubeconfig.Loader) (Client, error) { |
no test coverage detected