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

Check if targeted bootstrap/install version exists

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals
2021-02-15 18:41:25 +01:00
parent b903cd5b68
commit 9b649f6c72
3 changed files with 56 additions and 13 deletions

View File

@@ -132,6 +132,13 @@ func generateInstallManifests(targetPath, namespace, tmpDir string, localManifes
return "", err
}
bootstrapArgs.version = version
} else {
if ok, err := install.ExistingVersion(bootstrapArgs.version); err != nil || !ok {
if err == nil {
err = fmt.Errorf("targeted version '%s' does not exist", bootstrapArgs.version)
}
return "", err
}
}
opts := install.Options{