Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

kubefedcluster use cadata in kubeconfig file #1361

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/kubefedctl/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ func joinClusterForNamespace(hostConfig, clusterConfig *rest.Config, kubefedName
disabledTLSValidations = append(disabledTLSValidations, fedv1b1.TLSAll)
}

if clusterConfig.CAData != nil {
caBundle = clusterConfig.CAData
}

kubefedCluster, err := createKubeFedCluster(client, joiningClusterName, clusterConfig.Host,
secret.Name, kubefedNamespace, caBundle, disabledTLSValidations, dryRun, errorOnExisting)
if err != nil {
Expand Down