diff --git a/cmd/apply.go b/cmd/apply.go index 617cb439..dbadac51 100644 --- a/cmd/apply.go +++ b/cmd/apply.go @@ -60,7 +60,7 @@ func NewApplyCmd(globalCfg *config.GlobalImpl) *cobra.Command { f.BoolVar(&applyOptions.Wait, "wait", false, `Override helmDefaults.wait setting "helm upgrade --install --wait"`) f.BoolVar(&applyOptions.WaitForJobs, "wait-for-jobs", false, `Override helmDefaults.waitForJobs setting "helm upgrade --install --wait-for-jobs"`) f.BoolVar(&applyOptions.ReuseValues, "reuse-values", false, `Override helmDefaults.reuseValues "helm upgrade --install --reuse-values"`) - f.StringVar(&applyOptions.PostRenderer, "post-renderer", "", `pass post-renderer to "helm template" or "helm upgrade --install"`) + f.StringVar(&applyOptions.PostRenderer, "post-renderer", "", `pass --post-renderer to "helm template" or "helm upgrade --install"`) return cmd } diff --git a/cmd/sync.go b/cmd/sync.go index 10a912b1..f21bfb03 100644 --- a/cmd/sync.go +++ b/cmd/sync.go @@ -44,7 +44,7 @@ func NewSyncCmd(globalCfg *config.GlobalImpl) *cobra.Command { f.BoolVar(&syncOptions.Wait, "wait", false, `Override helmDefaults.wait setting "helm upgrade --install --wait"`) f.BoolVar(&syncOptions.WaitForJobs, "wait-for-jobs", false, `Override helmDefaults.waitForJobs setting "helm upgrade --install --wait-for-jobs"`) f.BoolVar(&syncOptions.ReuseValues, "reuse-values", false, `Override helmDefaults.reuseValues "helm upgrade --install --reuse-values"`) - f.StringVar(&syncOptions.PostRenderer, "post-renderer", "", `pass post-renderer to "helm template" or "helm upgrade --install"`) + f.StringVar(&syncOptions.PostRenderer, "post-renderer", "", `pass --post-renderer to "helm template" or "helm upgrade --install"`) return cmd } diff --git a/cmd/template.go b/cmd/template.go index 8766c79b..c7a7933d 100644 --- a/cmd/template.go +++ b/cmd/template.go @@ -45,7 +45,7 @@ func NewTemplateCmd(globalCfg *config.GlobalImpl) *cobra.Command { f.BoolVar(&templateOptions.IncludeTransitiveNeeds, "include-transitive-needs", false, `like --include-needs, but also includes transitive needs (needs of needs). Does nothing when --selector/-l flag is not provided. Overrides exclusions of other selectors and conditions.`) f.BoolVar(&templateOptions.SkipDeps, "skip-deps", false, `skip running "helm repo update" and "helm dependency build"`) f.BoolVar(&templateOptions.SkipCleanup, "skip-cleanup", false, "Stop cleaning up temporary values generated by helmfile and helm-secrets. Useful for debugging. Don't use in production for security") - f.StringVar(&templateOptions.PostRenderer, "post-renderer", "", `pass post-renderer to "helm template" or "helm upgrade --install"`) + f.StringVar(&templateOptions.PostRenderer, "post-renderer", "", `pass --post-renderer to "helm template" or "helm upgrade --install"`) return cmd } diff --git a/docs/index.md b/docs/index.md index 26fe5969..1501cc88 100644 --- a/docs/index.md +++ b/docs/index.md @@ -215,6 +215,8 @@ helmDefaults: skipDeps: false # if set to true, reuses the last release's values and merges them with ones provided in helmfile. reuseValues: false + # propagate `--post-renderer` to helmv3 template and helm install + postRenderer: "path/to/postRenderer" # these labels will be applied to all releases in a Helmfile. Useful in templating if you have a helmfile per environment or customer and don't want to copy the same label to each release commonLabels: @@ -320,6 +322,8 @@ releases: # When set to `true`, skips running `helm dep up` and `helm dep build` on this release's chart. # Useful when the chart is broken, like seen in https://github.com/roboll/helmfile/issues/1547 skipDeps: false + # propagate `--post-renderer` to helmv3 template and helm install + postRenderer: "path/to/postRenderer" # Local chart example - name: grafana # name of this release diff --git a/pkg/config/apply.go b/pkg/config/apply.go index 393d4ad5..47cdac34 100644 --- a/pkg/config/apply.go +++ b/pkg/config/apply.go @@ -50,7 +50,7 @@ type ApplyOptions struct { WaitForJobs bool // ReuseValues is true if the helm command should reuse the values ReuseValues bool - // Propagate '--postRenderer' to helmv3 template and helm install + // Propagate '--post-renderer' to helmv3 template and helm install PostRenderer string } diff --git a/pkg/config/sync.go b/pkg/config/sync.go index 9073376c..1fb285ec 100644 --- a/pkg/config/sync.go +++ b/pkg/config/sync.go @@ -26,7 +26,7 @@ type SyncOptions struct { WaitForJobs bool // ReuseValues is true if the helm command should reuse the values ReuseValues bool - // Propagate '--postRenderer' to helmv3 template and helm install + // Propagate '--post-renderer' to helmv3 template and helm install PostRenderer string } diff --git a/pkg/config/template.go b/pkg/config/template.go index 541034d2..9509e7ad 100644 --- a/pkg/config/template.go +++ b/pkg/config/template.go @@ -34,7 +34,7 @@ type TemplateOptions struct { SkipDeps bool // SkipCleanup is the skip cleanup flag SkipCleanup bool - // Propagate '--postRenderer' to helmv3 template and helm install + // Propagate '--post-renderer' to helmv3 template and helm install PostRenderer string } diff --git a/pkg/state/state.go b/pkg/state/state.go index 35a0ca16..614617b5 100644 --- a/pkg/state/state.go +++ b/pkg/state/state.go @@ -152,7 +152,7 @@ type HelmSpec struct { SkipDeps bool `yaml:"skipDeps"` // on helm upgrade/diff, reuse values currently set in the release and merge them with the ones defined within helmfile ReuseValues bool `yaml:"reuseValues"` - // Propagate '--postRenderer' to helmv3 template and helm install + // Propagate '--post-renderer' to helmv3 template and helm install PostRenderer *string `yaml:"postRenderer,omitempty"` TLS bool `yaml:"tls"` @@ -318,7 +318,7 @@ type ReleaseSpec struct { // as a Helm chart. SkipDeps *bool `yaml:"skipDeps,omitempty"` - // Propagate '--postRenderer' to helmv3 template and helm install + // Propagate '--post-renderer' to helmv3 template and helm install PostRenderer *string `yaml:"postRenderer,omitempty"` }