MCPcopy Create free account
hub / github.com/PostHog/duckgres / getNestedString

Function getNestedString

controlplane/provisioner/k8s_client.go:499–502  ·  view source on GitHub ↗
(obj map[string]interface{}, key string)

Source from the content-addressed store, hash-verified

497 Group: cnpgTenantMRGroup, Version: "v1alpha1", Resource: "roles",
498 }).Namespace(ducklingNamespace).Get(ctx, roleName, metav1.GetOptions{})
499 switch {
500 case err == nil:
501 return false, nil
502 case apierrors.IsNotFound(err):
503 return true, nil
504 default:
505 return false, fmt.Errorf("check cleanup of role %s: %w", roleName, err)

Callers 1

parseDucklingStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected