Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
enhance output instuction when creating cc cluster with legacy config (
Browse files Browse the repository at this point in the history
  • Loading branch information
hongtaiwang authored Mar 23, 2023
1 parent ea462ac commit e82d452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tkg/client/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (c *TkgClient) CreateCluster(options *CreateClusterOptions, waitForCluster
// If `features.cluster.auto-apply-generated-clusterclass-based-configuration` feature-flag is not activated
// log command to use to create cluster using ClusterClass based config file and return
if !c.IsFeatureActivated(constants.FeatureFlagAutoApplyGeneratedClusterClassBasedConfiguration) {
log.Warningf("\nTo create a cluster with it, use")
log.Warningf("\nTo create a cluster with it, please use the following command together with all customized flags set in the last step. e.g. --tkr, -v")
log.Warningf(" tanzu cluster create --file %v", configFilePath)
return false, nil
}
Expand Down
2 changes: 1 addition & 1 deletion tkg/client/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ ova: []

result := captureOutput(*tkgClient, options, false)
Expect(result).To(ContainSubstring("Legacy configuration file detected. The inputs from said file have been converted into the new Cluster configuration"))
Expect(result).To(ContainSubstring("To create a cluster with it, use"))
Expect(result).To(ContainSubstring("To create a cluster with it, please use the following command together with all customized flags set in the last step. e.g. --tkr, -v"))
})

})
Expand Down

0 comments on commit e82d452

Please sign in to comment.