INNER CODE UNIT · Go

latestPatch

werf/nelm · scripts/schemagen/main.go:400

		latestPatch = -1
	)

	for dirName := range dirSHAs {
		major, dirMinor, patch, err := parseKubernetesVersionDirName(dirName)
		if err != nil {
			continue
		}

		if fmt.Sprintf("%d.%d", major, dirMinor) != minor || patch <= latestPatch {
			continue
		}

		latest, latestPatch = fmt.Sprintf("%d.%d.%d", major, dirMinor, patch), patch
	}

	if latest == "" {
		return "", fmt.Errorf("upstream has no schema directory for Kubernetes %s", minor)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…