Merge pull request #98346 from mortent/checkForScalePDBs
Check if resources implement scale in disruption controller
This commit is contained in:
@@ -86,6 +86,7 @@ func setup(t *testing.T) (*kubeapiservertesting.TestServer, *disruption.Disrupti
|
||||
client,
|
||||
mapper,
|
||||
scaleClient,
|
||||
client.Discovery(),
|
||||
)
|
||||
return server, pdbc, informers, clientSet, apiExtensionClient, dynamicClient
|
||||
}
|
||||
|
||||
@@ -356,6 +356,7 @@ func rmSetup(t *testing.T) (*httptest.Server, framework.CloseFunc, *disruption.D
|
||||
client,
|
||||
mapper,
|
||||
scaleClient,
|
||||
client.Discovery(),
|
||||
)
|
||||
return s, closeFn, rm, informers, clientSet
|
||||
}
|
||||
|
||||
@@ -69,7 +69,8 @@ func initDisruptionController(t *testing.T, testCtx *testutils.TestContext) *dis
|
||||
informers.Apps().V1().StatefulSets(),
|
||||
testCtx.ClientSet,
|
||||
mapper,
|
||||
scaleClient)
|
||||
scaleClient,
|
||||
testCtx.ClientSet.Discovery())
|
||||
|
||||
informers.Start(testCtx.Scheduler.StopEverything)
|
||||
informers.WaitForCacheSync(testCtx.Scheduler.StopEverything)
|
||||
|
||||
Reference in New Issue
Block a user