MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / NamespaceName

Function NamespaceName

tests/utils/operator/operator.go:160–166  ·  view source on GitHub ↗

NamespaceName returns the namespace the operator Deployment is running in

(ctx context.Context, crudClient client.Client)

Source from the content-addressed store, hash-verified

158
159// NamespaceName returns the namespace the operator Deployment is running in
160func NamespaceName(ctx context.Context, crudClient client.Client) (string, error) {
161 deployment, err := GetDeployment(ctx, crudClient)
162 if err != nil {
163 return "", err
164 }
165 return deployment.GetNamespace(), err
166}
167
168// IsReady ensures that the operator will be ready.
169func IsReady(

Callers 2

Calls 2

GetDeploymentFunction · 0.85
GetNamespaceMethod · 0.45

Tested by

no test coverage detected