cli: allow helm upgrades with old k8s patch version (#2095)

This commit is contained in:
Malte Poll 2023-07-12 12:42:51 +02:00 committed by GitHub
parent 37af5f5f50
commit 26f4a13934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 5 deletions

View file

@ -255,7 +255,7 @@ func (c *Client) upgradeRelease(
) error {
// We need to load all values that can be statically loaded before merging them with the cluster
// values. Otherwise the templates are not rendered correctly.
k8sVersion, err := versions.NewValidK8sVersion(conf.KubernetesVersion, true)
k8sVersion, err := versions.NewValidK8sVersion(conf.KubernetesVersion, false)
if err != nil {
return fmt.Errorf("validating k8s version: %s", conf.KubernetesVersion)
}