Skip to content

Commit

Permalink
fix: update platform add command to reference the platform instead of…
Browse files Browse the repository at this point in the history
… loft
  • Loading branch information
deniseschannon committed Sep 18, 2024
1 parent 07d8ebc commit d048af5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/vclusterctl/cmd/platform/add/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ vcluster platform add cluster my-cluster
},
}

c.Flags().StringVar(&cmd.Namespace, "namespace", "loft", "The namespace to generate the service account in. The namespace will be created if it does not exist")
c.Flags().StringVar(&cmd.Namespace, "namespace", "vcluster-platform", "The namespace to generate the service account in. The namespace will be created if it does not exist")
c.Flags().StringVar(&cmd.ServiceAccount, "service-account", "loft-admin", "The service account name to create")
c.Flags().StringVar(&cmd.DisplayName, "display-name", "", "The display name to show in the UI for this cluster")
c.Flags().BoolVar(&cmd.Wait, "wait", false, "If true, will wait until the cluster is initialized")
Expand Down Expand Up @@ -106,7 +106,7 @@ func (cmd *ClusterCmd) Run(ctx context.Context, args []string) error {

loftVersion, err := platformClient.Version()
if err != nil {
return fmt.Errorf("get loft version: %w", err)
return fmt.Errorf("get platform version: %w", err)
}

// TODO(ThomasK33): Eventually change this into an Apply instead of a Create call
Expand Down Expand Up @@ -254,7 +254,7 @@ func (cmd *ClusterCmd) Run(ctx context.Context, args []string) error {
}
}

cmd.Log.Donef("Successfully added cluster %s to Loft", clusterName)
cmd.Log.Donef("Successfully added cluster %s to the platform", clusterName)

return nil
}
Expand Down

0 comments on commit d048af5

Please sign in to comment.