MCPcopy Index your code
hub / github.com/aws/aws-node-termination-handler / getDrainHelper

Function getDrainHelper

pkg/node/node_test.go:49–61  ·  view source on GitHub ↗
(client *fake.Clientset)

Source from the content-addressed store, hash-verified

47var nodeName = "NAME"
48
49func getDrainHelper(client *fake.Clientset) *drain.Helper {
50 return &drain.Helper{
51 Ctx: context.TODO(),
52 Client: client,
53 Force: true,
54 GracePeriodSeconds: -1,
55 IgnoreAllDaemonSets: true,
56 DeleteEmptyDirData: true,
57 Timeout: time.Duration(120) * time.Second,
58 Out: log.Logger,
59 ErrOut: log.Logger,
60 }
61}
62
63func getNode(t *testing.T, drainHelper *drain.Helper) *node.Node {
64 nthConfig := config.Config{

Callers 15

newNodeFunction · 0.70
TestDrainSuccessFunction · 0.70
TestUncordonSuccessFunction · 0.70
TestUncordonFailureFunction · 0.70
TestGetEventIDSuccessFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected