Handle --disable-openapi-validation parameter in helm upgrade (#1396)

This commit is contained in:
Kyrylo Lebediev 2020-08-04 02:36:18 +03:00 committed by GitHub
parent cc9b7f3942
commit 2ce57ba2ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1841,6 +1841,11 @@ func (st *HelmState) flagsForUpgrade(helm helmexec.Interface, release *ReleaseSp
}
}
if release.DisableOpenAPIValidation != nil && *release.DisableOpenAPIValidation ||
release.DisableOpenAPIValidation == nil && st.HelmDefaults.DisableOpenAPIValidation != nil && *st.HelmDefaults.DisableOpenAPIValidation {
flags = append(flags, "--disable-openapi-validation")
}
flags = st.appendConnectionFlags(flags, release)
var err error