Skip to content

Commit 3f69820

Browse files
Always add client certificates if present. (#188)
1 parent bb11e5f commit 3f69820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KubernetesClient/Kubernetes.ConfigInit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private void SetCredentials(KubernetesClientConfiguration config, HttpClientHand
136136
};
137137
}
138138
// othwerwise set handler for clinet cert based auth
139-
else if ((!string.IsNullOrWhiteSpace(config.ClientCertificateData) ||
139+
if ((!string.IsNullOrWhiteSpace(config.ClientCertificateData) ||
140140
!string.IsNullOrWhiteSpace(config.ClientCertificateFilePath)) &&
141141
(!string.IsNullOrWhiteSpace(config.ClientCertificateKeyData) ||
142142
!string.IsNullOrWhiteSpace(config.ClientKeyFilePath)))

0 commit comments

Comments
 (0)