Skip to content

Commit

Permalink
chore: bump macro chart version (#1659)
Browse files Browse the repository at this point in the history
* chore: bump macro chart version

* reformat launch cluster cmd
  • Loading branch information
echoboomer authored and claywd committed Jun 30, 2023
1 parent 77c280a commit 8251b74
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions cmd/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func LaunchCommand() *cobra.Command {
}

// wire up new commands
launchCommand.AddCommand(launchUp(), launchDown(), launchListClusters(), launchDeleteCluster())
launchCommand.AddCommand(launchUp(), launchDown(), launchCluster())

return launchCommand
}
Expand Down Expand Up @@ -64,10 +64,23 @@ func launchDown() *cobra.Command {
return launchDownCmd
}

// launchCluster
func launchCluster() *cobra.Command {
launchClusterCmd := &cobra.Command{
Use: "cluster",
Short: "interact with clusters created by the kubefirst console",
TraverseChildren: true,
}

launchClusterCmd.AddCommand(launchListClusters(), launchDeleteCluster())

return launchClusterCmd
}

// launchListClusters makes a request to the console API to list created clusters
func launchListClusters() *cobra.Command {
launchListClustersCmd := &cobra.Command{
Use: "list-clusters",
Use: "list",
Short: "list clusters created by the kubefirst console",
TraverseChildren: true,
PreRun: checkDocker,
Expand All @@ -82,7 +95,7 @@ func launchListClusters() *cobra.Command {
// launchDeleteCluster makes a request to the console API to delete a single cluster
func launchDeleteCluster() *cobra.Command {
launchDeleteClusterCmd := &cobra.Command{
Use: "delete-cluster",
Use: "delete",
Short: "delete a cluster created by the kubefirst console",
TraverseChildren: true,
PreRun: checkDocker,
Expand Down
2 changes: 1 addition & 1 deletion internal/launch/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const (
helmChartName = "kubefirst"
helmChartRepoName = "kubefirst"
helmChartRepoURL = "https://charts.kubefirst.com"
helmChartVersion = "2.1.17"
helmChartVersion = "2.1.19"
namespace = "kubefirst"
secretName = "kubefirst-initial-secrets"
)

0 comments on commit 8251b74

Please sign in to comment.