Skip to content

Commit

Permalink
Merge pull request #1757 from FabianKramm/main
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasK33 authored May 10, 2024
2 parents 964f962 + 5adf1f1 commit 17cb055
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/vclusterctl/cmd/platform/connect/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type ClusterCmd struct {
ServiceAccount string
DisplayName string
Context string
Insecure bool
Wait bool
}

Expand Down Expand Up @@ -69,6 +70,7 @@ vcluster pro connect cluster my-cluster
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")
c.Flags().BoolVar(&cmd.Insecure, "insecure", false, "If true, deploys the agent in insecure mode")
c.Flags().StringVar(&cmd.Context, "context", "", "The kube context to use for installation")

return c
Expand Down Expand Up @@ -160,7 +162,7 @@ func (cmd *ClusterCmd) Run(ctx context.Context, args []string) error {
helmArgs = append(helmArgs, "--set", "token="+accessKey.AccessKey)
}

if accessKey.Insecure {
if cmd.Insecure || accessKey.Insecure || baseClient.Config().Insecure {
helmArgs = append(helmArgs, "--set", "insecureSkipVerify=true")
}

Expand Down

0 comments on commit 17cb055

Please sign in to comment.