first iteration to add standalone mode

This commit is contained in:
Sergey Kanzhelev
2023-03-13 20:54:50 +00:00
parent 1cb334960c
commit 1e6281e4a2
6 changed files with 236 additions and 17 deletions

View File

@@ -164,7 +164,7 @@ func getV1NodeDevices(ctx context.Context) (*kubeletpodresourcesv1.ListPodResour
// Returns the current KubeletConfiguration
func getCurrentKubeletConfig(ctx context.Context) (*kubeletconfig.KubeletConfiguration, error) {
// namespace only relevant if useProxy==true, so we don't bother
return e2ekubelet.GetCurrentKubeletConfig(ctx, framework.TestContext.NodeName, "", false)
return e2ekubelet.GetCurrentKubeletConfig(ctx, framework.TestContext.NodeName, "", false, framework.TestContext.StandaloneMode)
}
// Must be called within a Context. Allows the function to modify the KubeletConfiguration during the BeforeEach of the context.