MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / makeWorkspace

Function makeWorkspace

pkg/secrets/backup_test.go:57–64  ·  view source on GitHub ↗

makeWorkspace returns a minimal DevWorkspace in the given namespace.

(namespace string)

Source from the content-addressed store, hash-verified

55
56// makeWorkspace returns a minimal DevWorkspace in the given namespace.
57func makeWorkspace(namespace string) *dwv2.DevWorkspace {
58 return &dwv2.DevWorkspace{
59 ObjectMeta: metav1.ObjectMeta{
60 Name: "test-workspace",
61 Namespace: namespace,
62 },
63 }
64}
65
66// makeConfig returns an OperatorConfiguration with BackupCronJob configured to use the given auth secret name.
67func makeConfig(authSecretName string) *controllerv1alpha1.OperatorConfiguration {

Callers 1

backup_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected