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

Function deleteObject

controllers/workspace/util_test.go:162–168  ·  view source on GitHub ↗
(obj crclient.Object)

Source from the content-addressed store, hash-verified

160}
161
162func deleteObject(obj crclient.Object) {
163 Expect(k8sClient.Delete(ctx, obj)).Should(Succeed())
164 Eventually(func() bool {
165 err := k8sClient.Get(ctx, namespacedName(obj.GetName(), obj.GetNamespace()), obj)
166 return k8sErrors.IsNotFound(err)
167 }, 10*time.Second, 250*time.Millisecond).Should(BeTrue(), "Deleting %s with name %s", obj.GetObjectKind(), obj.GetName())
168}
169
170func markRoutingReady(mainUrl, routingName string) {
171 namespacedName := namespacedName(routingName, testNamespace)

Callers 1

Calls 2

namespacedNameFunction · 0.70
GetMethod · 0.65

Tested by

no test coverage detected