Skip to content

Commit 40cea11

Browse files
committed
dont use pointer
1 parent ffd7834 commit 40cea11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/helm-migrate-values/root.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ func NewRootCmd(actionConfig *action.Configuration, settings *cli.EnvSettings, o
6363
var migrationDir string
6464
flags.StringVar(&migrationDir, "migration-dir", "value-migrations", "Specifies the relative path to the directory containing migration definition files. The path should be relative to the Helm chart directory.")
6565

66-
runner := newRunner(actionConfig, flags, settings, out, &migrationDir, &outputFile, log)
66+
runner := newRunner(actionConfig, flags, settings, out, migrationDir, &outputFile, log)
6767
cmd.RunE = runner
6868

6969
return cmd, nil
7070
}
7171

72-
func newRunner(actionConfig *action.Configuration, flags *pflag.FlagSet, settings *cli.EnvSettings, out io.Writer, migrationDir *string, outputFile *string, log pkg.Logger) func(cmd *cobra.Command, args []string) error {
72+
func newRunner(actionConfig *action.Configuration, flags *pflag.FlagSet, settings *cli.EnvSettings, out io.Writer, migrationDir string, outputFile *string, log pkg.Logger) func(cmd *cobra.Command, args []string) error {
7373
// We use the install action for locating the chart
7474
var installAction = action.NewInstall(actionConfig)
7575
var listAction = action.NewList(actionConfig)
@@ -130,7 +130,7 @@ func newRunner(actionConfig *action.Configuration, flags *pflag.FlagSet, setting
130130
return fmt.Errorf("failed to extract major version from chart version: %s", release.Chart.Metadata.Version)
131131
}
132132
relMajorVer, _ := strconv.Atoi(matches[1])
133-
migrationsPath := filepath.Join(*chartDir, *migrationDir)
133+
migrationsPath := filepath.Join(*chartDir, migrationDir)
134134

135135
// vTo is always nil, because it really only makes sense to migrate to the current chart version.
136136
// The migrations library does support migrating to a specific version though.

0 commit comments

Comments
 (0)