mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
added comment
This commit is contained in:
parent
b66c4e8d45
commit
eb6eb11748
@ -65,6 +65,9 @@ func KubernetesReleaseVersion(version string) (string, error) {
|
||||
return kubernetesReleaseVersion(version, fetchFromURL)
|
||||
}
|
||||
|
||||
// kubernetesReleaseVersion is a helper function to fetch
|
||||
// available version information. Used for testing to eliminate
|
||||
// the need for internet calls.
|
||||
func kubernetesReleaseVersion(version string, fetcher func(string, time.Duration) (string, error)) (string, error) {
|
||||
ver := normalizedBuildVersion(version)
|
||||
if len(ver) != 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user