diff --git a/docs/index.md b/docs/index.md index 22bf5fbe..5af7f7c0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -193,6 +193,8 @@ helmDefaults: # verify the chart before upgrading (only works with packaged charts not directories) (default false) verify: true keyring: path/to/keyring.gpg + # --skip-schema-validation flag to helm 'install', 'upgrade' and 'lint', starts with helm 3.16.0 (default false) + skipSchemaValidation: false # wait for k8s resources via --wait. (default false) wait: true # if set and --wait enabled, will retry any failed check on resource state subject to the specified number of retries (default 0) @@ -313,6 +315,8 @@ releases: # Override helmDefaults options for verify, wait, waitForJobs, timeout, recreatePods and force. verify: true keyring: path/to/keyring.gpg + # --skip-schema-validation flag to helm 'install', 'upgrade' and 'lint', starts with helm 3.16.0 (default false) + skipSchemaValidation: false wait: true waitRetries: 3 waitForJobs: true diff --git a/pkg/config/apply.go b/pkg/config/apply.go index 1b34a88b..e77592b5 100644 --- a/pkg/config/apply.go +++ b/pkg/config/apply.go @@ -54,7 +54,7 @@ type ApplyOptions struct { WaitRetries int // WaitForJobs is true if the helm command should wait for the jobs to be completed WaitForJobs bool - // Propagate '--skipSchemaValidation' to helmv3 template and helm install + // Propagate '--skip-schema-validation' to helmv3 template and helm install SkipSchemaValidation bool // ReuseValues is true if the helm command should reuse the values ReuseValues bool diff --git a/pkg/config/sync.go b/pkg/config/sync.go index aaea12bb..033f82ed 100644 --- a/pkg/config/sync.go +++ b/pkg/config/sync.go @@ -32,7 +32,7 @@ type SyncOptions struct { PostRenderer string // Propagate '--post-renderer-args' to helmv3 template and helm install PostRendererArgs []string - // Propagate '--skipSchemaValidation' to helmv3 template and helm install + // Propagate '--skip-schema-validation' to helmv3 template and helm install SkipSchemaValidation bool // Cascade '--cascade' to helmv3 delete, available values: background, foreground, or orphan, default: background Cascade string diff --git a/pkg/config/template.go b/pkg/config/template.go index 134cc6aa..90c82691 100644 --- a/pkg/config/template.go +++ b/pkg/config/template.go @@ -38,7 +38,7 @@ type TemplateOptions struct { PostRenderer string // Propagate '--post-renderer-args' to helmv3 template and helm install PostRendererArgs []string - // Propagate '--skipSchemaValidation' to helmv3 template and helm install + // Propagate '--skip-schema-validation' to helmv3 template and helm install SkipSchemaValidation bool // KubeVersion is the kube-version flag KubeVersion string diff --git a/pkg/state/state.go b/pkg/state/state.go index 38215228..b4e02ede 100644 --- a/pkg/state/state.go +++ b/pkg/state/state.go @@ -161,7 +161,7 @@ type HelmSpec struct { Keyring string `yaml:"keyring,omitempty"` // EnableDNS, when set to true, enable DNS lookups when rendering templates EnableDNS bool `yaml:"enableDNS"` - // Propagate '--skipSchemaValidation' to helmv3 template and helm install + // Propagate '--skip-schema-validation' to helmv3 template and helm install SkipSchemaValidation *bool `yaml:"skipSchemaValidation,omitempty"` // Devel, when set to true, use development versions, too. Equivalent to version '>0.0.0-0' Devel bool `yaml:"devel"` @@ -390,7 +390,7 @@ type ReleaseSpec struct { // Propagate '--post-renderer' to helmv3 template and helm install PostRenderer *string `yaml:"postRenderer,omitempty"` - // Propagate '--skipSchemaValidation' to helmv3 template and helm install + // Propagate '--skip-schema-validation' to helmv3 template and helm install SkipSchemaValidation *bool `yaml:"skipSchemaValidation,omitempty"` // Propagate '--post-renderer-args' to helmv3 template and helm install