// GetKubernetesVersionFromMasterIn reads the version of the Kubernetes control
// plane from the provided machines. If no version is configured, the default
// Kubernetes version will be returned.
GetKubernetesVersionFromMasterIn reads the version of the Kubernetes control
plane from the provided machines. If no version is configured, the default
Kubernetes version will be returned.
// GetKubernetesVersionFromMasterIn reads the version of the Kubernetes control // plane from the provided machines . If no version is configured the default // Kubernetes version will be returned .
func GetKubernetesVersionFromMasterIn(machines []*clusterv1.Machine) (string, error) {
	errs := Validate(machines)
	if len(errs) > 0 {
		return "", errs.ToAggregate()
	}
	return GetKubernetesVersion(FirstMaster(machines)), nil
}
func GetKubernetesVersionFromMasterIn ( machines [ ] * clusterv1 . Machine ) ( string , error ) { errs := Validate ( machines ) if len ( errs ) > 0 { return " " , errs . ToAggregate ( ) } return GetKubernetesVersion ( FirstMaster ( machines ) ) , nil }
GetKubernetesVersionFromMasterIn reads the version of the Kubernetes control
plane from the provided machines.
GetKubernetesVersionFromMasterIn reads the version of the Kubernetes control plane from the provided machines .
// Ensures all machines have the same version (either specified or empty):