add supported k8s version check

This commit is contained in:
2025-08-09 17:00:02 +03:00
parent 5e8b03ff10
commit 5466c3e36f
4 changed files with 57 additions and 8 deletions

11
internal/config/errors.go Normal file
View File

@@ -0,0 +1,11 @@
package config
import "fmt"
type UnsupportedK8sVersion struct {
Version string
}
func (e *UnsupportedK8sVersion) Error() string {
return fmt.Sprintf("kubernetes version %s is not supported\n\ncurrently supported: %v", e.Version, kubernetesVersions)
}