Skip to content

Commit

Permalink
revert adding --ca-data flag to vcluster platform add cluster
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Bojanowski <pawelbojanowski@protonmail.com>
  • Loading branch information
hidalgopl committed Sep 19, 2024
1 parent 2e1dff9 commit 97d3957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/vclusterctl/cmd/platform/add/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ func (cmd *ClusterCmd) Run(ctx context.Context, args []string) error {
helmArgs = append(helmArgs, "--set", "insecureSkipVerify=true")
}

if len(cmd.CertificateAuthorityData) > 0 {
helmArgs = append(helmArgs, "--set", "additionalCA="+string(cmd.CertificateAuthorityData))
if accessKey.CaCert != "" {
helmArgs = append(helmArgs, "--set", "additionalCA="+string(accessKey.CaCert))

Check failure on line 208 in cmd/vclusterctl/cmd/platform/add/cluster.go

View workflow job for this annotation

GitHub Actions / lint

unnecessary conversion (unconvert)
}

if cmd.Wait {
Expand Down

0 comments on commit 97d3957

Please sign in to comment.