Skip to content

Commit 8654920

Browse files
authored
Merge pull request #797 from Iceber/fix_cluster_auth_from_secrets
fix build cluster config from secrets
2 parents 9b5c9b7 + d47b05f commit 8654920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/utils/rest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func buildClusterRestConfigFromSecret(apiserver string, auth *clusterv1alpha2.Cl
103103
config.TLSClientConfig.Insecure = true
104104
}
105105

106-
if auth.CA != nil && auth.Key != nil {
106+
if auth.Cert != nil && auth.Key != nil {
107107
cert, err := getValueFromSecret(lister, auth.Cert.Name, auth.Cert.Key)
108108
if err != nil {
109109
return nil, err

0 commit comments

Comments
 (0)