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

Function makeConfig

pkg/secrets/backup_test.go:67–78  ·  view source on GitHub ↗

makeConfig returns an OperatorConfiguration with BackupCronJob configured to use the given auth secret name.

(authSecretName string)

Source from the content-addressed store, hash-verified

65
66// makeConfig returns an OperatorConfiguration with BackupCronJob configured to use the given auth secret name.
67func makeConfig(authSecretName string) *controllerv1alpha1.OperatorConfiguration {
68 return &controllerv1alpha1.OperatorConfiguration{
69 Workspace: &controllerv1alpha1.WorkspaceConfig{
70 BackupCronJob: &controllerv1alpha1.BackupCronJobConfig{
71 Registry: &controllerv1alpha1.RegistryConfig{
72 Path: "example.registry.io/org",
73 AuthSecret: authSecretName,
74 },
75 },
76 },
77 }
78}
79
80// makeSecret returns a corev1.Secret with the given name and namespace.
81func makeSecret(name, namespace string) *corev1.Secret {

Callers 1

backup_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected