Skip to content

Commit

Permalink
Merge pull request #2231 from loft-sh/thomaskosiewski/eng-4884-kubeco…
Browse files Browse the repository at this point in the history
…nfig-data-gives-me-tls-error
  • Loading branch information
Thomas Kosiewski authored Oct 16, 2024
2 parents 1bad19d + cff4d89 commit 4e057eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/setup/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ func WriteKubeConfigToSecret(ctx context.Context, virtualConfig *rest.Config, cu
}

syncerConfig.Clusters[key] = &clientcmdapi.Cluster{
Server: options.ExportKubeConfig.Server,
Extensions: make(map[string]runtime.Object),

InsecureSkipTLSVerify: options.ExportKubeConfig.Insecure,
Server: options.ExportKubeConfig.Server,
Extensions: make(map[string]runtime.Object),
CertificateAuthorityData: cluster.CertificateAuthorityData,
InsecureSkipTLSVerify: options.ExportKubeConfig.Insecure,
}
}
}
Expand Down

0 comments on commit 4e057eb

Please sign in to comment.