Skip to content

Commit

Permalink
chore: fix cluster chart version when auto register (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
yipeng1030 authored Oct 11, 2024
1 parent 65f8876 commit 771cc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/addon/addon.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func newEnableCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.
util.CheckErr(o.complete(o, cmd, []string{name}))
util.CheckErr(o.CmdComplete(cmd))
util.CheckErr(o.Run())
util.CheckErr(clusterCmd.RegisterClusterChart(f, streams, "", name, o.addon.Spec.Version, types.ClusterChartsRepoURL))
util.CheckErr(clusterCmd.RegisterClusterChart(f, streams, "", name, getAddonVersion(&o.addon), types.ClusterChartsRepoURL))
}
},
}
Expand Down

0 comments on commit 771cc8e

Please sign in to comment.