MCPcopy Index your code
hub / github.com/redspread/spread / createSecret

Function createSecret

pkg/deploy/deployment_test.go:125–134  ·  view source on GitHub ↗
(name, data string)

Source from the content-addressed store, hash-verified

123}
124
125func createSecret(name, data string) *kube.Secret {
126 return &kube.Secret{
127 ObjectMeta: kube.ObjectMeta{
128 Name: name,
129 Namespace: "default",
130 },
131 Data: map[string][]byte{"test": []byte(data)},
132 Type: kube.SecretTypeOpaque,
133 }
134}

Callers 4

TestNoDuplicateNamesFunction · 0.70
TestDeploymentObjectsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected