Skip to content

Commit

Permalink
Add --disable-openapi-validation to both helm install and upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
nktpro committed May 9, 2024
1 parent 1a05ccd commit b23f32b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/actions/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ async function helmInstall(
? [
"helm",
"upgrade",
"--disable-openapi-validation",
"-n",
namespace,
"--history-max=2",
Expand All @@ -67,6 +68,7 @@ async function helmInstall(
: [
"helm",
"install",
"--disable-openapi-validation",
"-n",
namespace,
...(wait ? ["--wait"] : []),
Expand Down
2 changes: 1 addition & 1 deletion src/libs/iac_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ export async function helmTemplate(
const helmTemplateCmd = [
"helm",
"template",
"--disable-openapi-validation",
"-n",
chartInstance.namespace,
"-f",
"-",
"--disable-openapi-validation",
"--kube-version",
kubeVersion,
...(allApiVersions.flatMap((v) => ["--api-versions", v])),
Expand Down

0 comments on commit b23f32b

Please sign in to comment.