func GetNodes(client clientset.Interface) ([]v1.Node, error) {
	nodes, err := client.CoreV1().Nodes().List(context.Background(), metav1.ListOptions{})
	if err != nil {
		return nil, fmt.Errorf("failed to list nodes: %w", err)
	}
	return nodes.Items, nil
}
// GetNodes returns all nodes of this cluster.
GetNodes returns all nodes of this cluster.
// GetNodes returns all nodes of this cluster .
func GetNodes(client clientset.Interface) ([]v1.Node, error) {
	nodes, err := client.CoreV1().Nodes().List(context.Background(), metav1.ListOptions{})
	if err != nil {
		return nil, fmt.Errorf("failed to list nodes: %w", err)
	}
	return nodes.Items, nil
}
func GetNodes ( client clientset . Interface ) ( [ ] v1 . Node , error ) { nodes , err := client . CoreV1 ( ) . Nodes ( ) . List ( context . Background ( ) , metav1 . ListOptions { } ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return nodes . Items , nil }
GetNodes returns all nodes of this cluster.
GetNodes returns all nodes of this cluster .