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

Function makeSecret

pkg/secrets/backup_test.go:81–90  ·  view source on GitHub ↗

makeSecret returns a corev1.Secret with the given name and namespace.

(name, namespace string)

Source from the content-addressed store, hash-verified

79
80// makeSecret returns a corev1.Secret with the given name and namespace.
81func 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
92var _ = Describe("HandleRegistryAuthSecret (restore path: operatorConfigNamespace='')", func() {
93 const workspaceNS = "user-namespace"

Callers 1

backup_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected