MCPcopy Index your code
hub / github.com/zalando/postgres-operator / newUtilTestController

Function newUtilTestController

pkg/controller/util_test.go:23–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21)
22
23func newUtilTestController() *Controller {
24 controller := NewController(&spec.ControllerConfig{}, "util-test")
25 controller.opConfig.ClusterNameLabel = "cluster-name"
26 controller.opConfig.InfrastructureRolesSecretName =
27 spec.NamespacedName{
28 Namespace: v1.NamespaceDefault,
29 Name: testInfrastructureRolesOldSecretName,
30 }
31 controller.opConfig.Workers = 4
32 controller.KubeClient = k8sutil.NewMockKubernetesClient()
33 return controller
34}
35
36var utilTestController = newUtilTestController()
37

Callers 1

util_test.goFile · 0.85

Calls 2

NewMockKubernetesClientFunction · 0.92
NewControllerFunction · 0.85

Tested by

no test coverage detected