makeSecret returns a corev1.Secret with the given name and namespace.
(name, namespace string)
| 79 | |
| 80 | // makeSecret returns a corev1.Secret with the given name and namespace. |
| 81 | func makeSecret(name, namespace string) *corev1.Secret { |
| 82 | return &corev1.Secret{ |
| 83 | ObjectMeta: metav1.ObjectMeta{ |
| 84 | Name: name, |
| 85 | Namespace: namespace, |
| 86 | }, |
| 87 | Data: map[string][]byte{"auth": []byte("dXNlcjpwYXNz")}, |
| 88 | Type: corev1.SecretTypeDockerConfigJson, |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | var _ = Describe("HandleRegistryAuthSecret (restore path: operatorConfigNamespace='')", func() { |
| 93 | const workspaceNS = "user-namespace" |