MCPcopy Create free account
hub / github.com/flant/shell-operator / ensureTestObject

Function ensureTestObject

test/integration/kubeclient/object_patch_test.go:210–217  ·  view source on GitHub ↗
(_ string, obj interface{})

Source from the content-addressed store, hash-verified

208}
209
210func ensureTestObject(_ string, obj interface{}) error {
211 unstructuredObj, err := generateUnstructured(obj)
212 if err != nil {
213 panic(err)
214 }
215
216 return ObjectPatcher.ExecuteOperation(objectpatch.NewCreateOrUpdateOperation(unstructuredObj))
217}
218
219func removeNamespace(name string) error {
220 return ObjectPatcher.ExecuteOperation(objectpatch.NewDeleteOperation("", "Namespace", "", name))

Callers 1

Calls 2

generateUnstructuredFunction · 0.85
ExecuteOperationMethod · 0.80

Tested by

no test coverage detected