List gathers the current list of Nodes
( ctx context.Context, crudClient client.Client, )
| 104 | |
| 105 | // List gathers the current list of Nodes |
| 106 | func 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 |
no test coverage detected