MCPcopy
hub / github.com/fluid-cloudnative/fluid / mockRuntimeStatefulset

Function mockRuntimeStatefulset

pkg/ctrl/ctrl_suite_test.go:17–26  ·  view source on GitHub ↗
(name, namespace string)

Source from the content-addressed store, hash-verified

15}
16
17func mockRuntimeStatefulset(name, namespace string) *appsv1.StatefulSet {
18 return &appsv1.StatefulSet{
19 ObjectMeta: metav1.ObjectMeta{
20 Name: name,
21 Namespace: namespace,
22 },
23 Spec: appsv1.StatefulSetSpec{},
24 Status: appsv1.StatefulSetStatus{},
25 }
26}
27
28func mockRuntimeDaemonset(name, namespace string) *appsv1.DaemonSet {
29 return &appsv1.DaemonSet{

Callers 2

worker_test.goFile · 0.85
master_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected