Skip to content

Commit 0638009

Browse files
brendandburnsk8s-ci-robot
authored andcommitted
Remove forward slashes from paths. (#323)
1 parent f67aaec commit 0638009

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/KubernetesClient/KubernetesClientConfiguration.InCluster.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ namespace k8s
66
{
77
public partial class KubernetesClientConfiguration
88
{
9-
private const string ServiceAccountPath = "/var/run/secrets/kubernetes.io/serviceaccount/";
9+
private static string ServiceAccountPath =
10+
Path.Combine(new string[] {
11+
"var", "run", "secrets", "kubernetes.io", "serviceaccount/"
12+
});
1013
private const string ServiceAccountTokenKeyFileName = "token";
1114
private const string ServiceAccountRootCAKeyFileName = "ca.crt";
1215

0 commit comments

Comments
 (0)