1
0
mirror of synced 2026-02-13 13:06:56 +00:00

Check if targeted version is supported by binary

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals
2021-02-15 20:50:31 +01:00
parent 9b649f6c72
commit 5263dabd22
4 changed files with 73 additions and 1 deletions

View File

@@ -141,6 +141,10 @@ func generateInstallManifests(targetPath, namespace, tmpDir string, localManifes
}
}
if !utils.CompatibleVersion(VERSION, bootstrapArgs.version) {
return "", fmt.Errorf("targeted version '%s' is not compatible with your current version of flux (%s)", bootstrapArgs.version, VERSION)
}
opts := install.Options{
BaseURL: localManifests,
Version: bootstrapArgs.version,