Port the downward api test to the node e2e suite
Also extend the framework to allow a custom client config loading function, so that the node e2e suite can reuse the same framework across tests.
This commit is contained in:
@@ -1596,6 +1596,8 @@ func restclientConfig(kubeContext string) (*clientcmdapi.Config, error) {
|
||||
return c, nil
|
||||
}
|
||||
|
||||
type ClientConfigGetter func() (*restclient.Config, error)
|
||||
|
||||
func LoadConfig() (*restclient.Config, error) {
|
||||
c, err := restclientConfig(TestContext.KubeContext)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user