makeWorkspace returns a minimal DevWorkspace in the given namespace.
(namespace string)
| 55 | |
| 56 | // makeWorkspace returns a minimal DevWorkspace in the given namespace. |
| 57 | func 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. |
| 67 | func makeConfig(authSecretName string) *controllerv1alpha1.OperatorConfiguration { |