Skip to content

Commit

Permalink
Fixes migrate command bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seans3 committed Nov 11, 2020
1 parent 150651b commit c7e0949
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commands/livecmd.go
Expand Up @@ -117,8 +117,11 @@ func GetLiveCommand(name string, f util.Factory) *cobra.Command {
// from ConfigMap to ResourceGroup inventory object.
if _, exists := os.LookupEnv(resourceGroupEnv); exists {
klog.V(2).Infoln("adding kpt live migrate command")
// Create a ConfigMap and a ResourceGroup provider for the
// migrate command, and add the migrate command to live command.
cmProvider := provider.NewProvider(f)
rgProvider := live.NewResourceGroupProvider(f)
migrateCmd := GetMigrateRunner(p, rgProvider, ioStreams).Command
migrateCmd := GetMigrateRunner(cmProvider, rgProvider, ioStreams).Command
liveCmd.AddCommand(migrateCmd)
}

Expand Down

0 comments on commit c7e0949

Please sign in to comment.