update postrenderer docs (#580)
Signed-off-by: yxxhero <aiopsclub@163.com> Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
		
							parent
							
								
									17b03c22ec
								
							
						
					
					
						commit
						7410316cf9
					
				|  | @ -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.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.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.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 | 	return cmd | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -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.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.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.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 | 	return cmd | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -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.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.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.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 | 	return cmd | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -215,6 +215,8 @@ helmDefaults: | ||||||
|   skipDeps: false |   skipDeps: false | ||||||
|   # if set to true, reuses the last release's values and merges them with ones provided in helmfile. |   # if set to true, reuses the last release's values and merges them with ones provided in helmfile. | ||||||
|   reuseValues: false |   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 | # 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: | commonLabels: | ||||||
|  | @ -320,6 +322,8 @@ releases: | ||||||
|     # When set to `true`, skips running `helm dep up` and `helm dep build` on this release's chart. |     # 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 |     # Useful when the chart is broken, like seen in https://github.com/roboll/helmfile/issues/1547 | ||||||
|     skipDeps: false |     skipDeps: false | ||||||
|  |     # propagate `--post-renderer` to helmv3 template and helm install | ||||||
|  |     postRenderer: "path/to/postRenderer" | ||||||
| 
 | 
 | ||||||
|   # Local chart example |   # Local chart example | ||||||
|   - name: grafana                            # name of this release |   - name: grafana                            # name of this release | ||||||
|  |  | ||||||
|  | @ -50,7 +50,7 @@ type ApplyOptions struct { | ||||||
| 	WaitForJobs bool | 	WaitForJobs bool | ||||||
| 	// ReuseValues is true if the helm command should reuse the values
 | 	// ReuseValues is true if the helm command should reuse the values
 | ||||||
| 	ReuseValues bool | 	ReuseValues bool | ||||||
| 	// Propagate '--postRenderer' to helmv3 template and helm install
 | 	// Propagate '--post-renderer' to helmv3 template and helm install
 | ||||||
| 	PostRenderer string | 	PostRenderer string | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -26,7 +26,7 @@ type SyncOptions struct { | ||||||
| 	WaitForJobs bool | 	WaitForJobs bool | ||||||
| 	// ReuseValues is true if the helm command should reuse the values
 | 	// ReuseValues is true if the helm command should reuse the values
 | ||||||
| 	ReuseValues bool | 	ReuseValues bool | ||||||
| 	// Propagate '--postRenderer' to helmv3 template and helm install
 | 	// Propagate '--post-renderer' to helmv3 template and helm install
 | ||||||
| 	PostRenderer string | 	PostRenderer string | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -34,7 +34,7 @@ type TemplateOptions struct { | ||||||
| 	SkipDeps bool | 	SkipDeps bool | ||||||
| 	// SkipCleanup is the skip cleanup flag
 | 	// SkipCleanup is the skip cleanup flag
 | ||||||
| 	SkipCleanup bool | 	SkipCleanup bool | ||||||
| 	// Propagate '--postRenderer' to helmv3 template and helm install
 | 	// Propagate '--post-renderer' to helmv3 template and helm install
 | ||||||
| 	PostRenderer string | 	PostRenderer string | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -152,7 +152,7 @@ type HelmSpec struct { | ||||||
| 	SkipDeps bool `yaml:"skipDeps"` | 	SkipDeps bool `yaml:"skipDeps"` | ||||||
| 	// on helm upgrade/diff, reuse values currently set in the release and merge them with the ones defined within helmfile
 | 	// on helm upgrade/diff, reuse values currently set in the release and merge them with the ones defined within helmfile
 | ||||||
| 	ReuseValues bool `yaml:"reuseValues"` | 	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"` | 	PostRenderer *string `yaml:"postRenderer,omitempty"` | ||||||
| 
 | 
 | ||||||
| 	TLS                      bool   `yaml:"tls"` | 	TLS                      bool   `yaml:"tls"` | ||||||
|  | @ -318,7 +318,7 @@ type ReleaseSpec struct { | ||||||
| 	// as a Helm chart.
 | 	// as a Helm chart.
 | ||||||
| 	SkipDeps *bool `yaml:"skipDeps,omitempty"` | 	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"` | 	PostRenderer *string `yaml:"postRenderer,omitempty"` | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue