MCPcopy Create free account
hub / github.com/FairwindsOps/gemini / newSnapshotGroup

Function newSnapshotGroup

pkg/controller/controller_test.go:32–49  ·  view source on GitHub ↗
(name, namespace string)

Source from the content-addressed store, hash-verified

30)
31
32func newSnapshotGroup(name, namespace string) *snapshotgroup.SnapshotGroup {
33 return &snapshotgroup.SnapshotGroup{
34 TypeMeta: metav1.TypeMeta{APIVersion: snapshotgroup.SchemeGroupVersion.String()},
35 ObjectMeta: metav1.ObjectMeta{
36 Name: name,
37 Namespace: namespace,
38 Annotations: map[string]string{},
39 },
40 Spec: snapshotgroup.SnapshotGroupSpec{
41 Schedule: []snapshotgroup.SnapshotSchedule{
42 {
43 Every: "1 second",
44 Keep: 1,
45 },
46 },
47 },
48 }
49}
50
51func newTestController() (*Controller, *kube.Client) {
52 kube.SetFakeClient()

Callers 5

TestControllerQueueFunction · 0.85
TestBackupHandlerFunction · 0.85
TestRestoreHandlerFunction · 0.85
TestDeleteHandlerFunction · 0.85
TestPreexistingPVCFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected