Skip to content

Commit

Permalink
Merge pull request #344 from replicatedhq/joshd/cluster-prepare-creat…
Browse files Browse the repository at this point in the history
…e-namespace

Create namespace also for helm install
  • Loading branch information
jdewinne authored Dec 7, 2023
2 parents 017b475 + 750a06e commit e2bae77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/cmd/cluster_prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Example:
replicated cluster prepare --distribution eks --version 1.27 --instance-type c6.xlarge --node-count 3 \
--entitlement seat_count=100 --entitlement license_type=enterprise \
--chart ./my-helm-chart --values ./values.yaml --set chart-key=value --set chart-key2=value2`,
--chart ./your-chart.tgz --values ./values.yaml --set chart-key=value --set chart-key2=value2`,
RunE: r.prepareCluster,
}

Expand Down Expand Up @@ -90,7 +90,7 @@ replicated cluster prepare --distribution eks --version 1.27 --instance-type c6.
cmd.Flags().StringVar(&r.args.prepareClusterKotsSharedPassword, "shared-password", "", "Shared password for the KOTS admin console.")

// for builders plan (chart only)
cmd.Flags().StringVar(&r.args.prepareClusterChart, "chart", "", "Path to the helm chart to deploy")
cmd.Flags().StringVar(&r.args.prepareClusterChart, "chart", "", "Path to the helm chart package to deploy")
addValueOptionsFlags(cmd.Flags(), &r.args.prepareClusterValueOpts)

cmd.Flags().StringVar(&r.args.prepareClusterNamespace, "namespace", "default", "The namespace into which to deploy the KOTS application or Helm chart.")
Expand Down Expand Up @@ -571,6 +571,7 @@ func installHelmChart(r *runners, appSlug string, chartName string, releaseSeque
client.Namespace = r.args.prepareClusterNamespace
client.Timeout = r.args.prepareClusterAppReadyTimeout
client.Wait = true
client.CreateNamespace = true

if dryRun {
client.DryRun = true
Expand Down

0 comments on commit e2bae77

Please sign in to comment.