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

Function GetServiceAccountList

tests/utils/namespaces/namespace.go:362–372  ·  view source on GitHub ↗

GetServiceAccountList gathers the current list of jobs in a namespace

(
	ctx context.Context,
	crudClient client.Client,
	namespace string,
)

Source from the content-addressed store, hash-verified

360
361// GetServiceAccountList gathers the current list of jobs in a namespace
362func GetServiceAccountList(
363 ctx context.Context,
364 crudClient client.Client,
365 namespace string,
366) (*corev1.ServiceAccountList, error) {
367 serviceAccountList := &corev1.ServiceAccountList{}
368 err := crudClient.List(
369 ctx, serviceAccountList, client.InNamespace(namespace),
370 )
371 return serviceAccountList, err
372}
373
374// GetEventList gathers the current list of events in a namespace
375func GetEventList(

Callers 1

DumpNamespaceObjectsFunction · 0.85

Calls 1

ListMethod · 0.45

Tested by

no test coverage detected