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

Function List

tests/utils/nodes/nodes.go:106–113  ·  view source on GitHub ↗

List gathers the current list of Nodes

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

Source from the content-addressed store, hash-verified

104
105// List gathers the current list of Nodes
106func List(
107 ctx context.Context,
108 crudClient client.Client,
109) (*corev1.NodeList, error) {
110 nodeList := &corev1.NodeList{}
111 err := crudClient.List(ctx, nodeList, client.InNamespace(""))
112 return nodeList, err
113}
114
115// DescribeKubernetesNodes prints the `describe node` for each node in the
116// kubernetes cluster

Callers 5

drain_node_test.goFile · 0.92
UncordonAllFunction · 0.70
DescribeKubernetesNodesFunction · 0.70

Calls 1

ListMethod · 0.45

Tested by

no test coverage detected