Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 0c2230d

Browse files
authored
Merge pull request #95 from mnottale/helm-render-experimental
helm: Move render option into experimental.
2 parents 4b256e1 + 017d43b commit 0c2230d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/helm.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ var helmCmd = &cobra.Command{
1515
- values.yaml is created or updated with the values from settings which are
1616
actually used by the compose file.
1717
- templates/stack.yaml is created, with a stack template extracted from the app's
18-
docker-compose.yml. If the --render option is used, the docker-compose.yml will
19-
be rendered instead of exported as a template. Note that template export will
20-
not work if you use go templating, only variable substitution is supported.`,
18+
docker-compose.yml.`,
2119
Args: cli.RequiresMaxArgs(1),
2220
RunE: func(cmd *cobra.Command, args []string) error {
2321
d, err := parseSettings(helmEnv)
@@ -38,8 +36,10 @@ func init() {
3836
if internal.Experimental == "on" {
3937
helmCmd.Flags().StringArrayVarP(&helmComposeFiles, "compose-files", "c", []string{}, "Override Compose files")
4038
helmCmd.Use += " [-c <compose-files>...]"
39+
helmCmd.Flags().BoolVarP(&helmRender, "render", "r", false, "Render the template instead of exporting it")
40+
helmCmd.Long += ` If the --render option is used, the docker-compose.yml will
41+
be rendered instead of exported as a template.`
4142
}
4243
helmCmd.Flags().StringArrayVarP(&helmSettingsFile, "settings-files", "f", []string{}, "Override settings files")
4344
helmCmd.Flags().StringArrayVarP(&helmEnv, "set", "s", []string{}, "Override settings values")
44-
helmCmd.Flags().BoolVarP(&helmRender, "render", "r", false, "Render the template instead of exporting it")
4545
}

0 commit comments

Comments
 (0)