2 writes to KubeConfigPath
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
288
KubernetesEnvironment.
KubeConfigPath
= null;
331
KubernetesEnvironment.
KubeConfigPath
= kubeConfigPath;
51 references to KubeConfigPath
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
547
var kubeConfigPath = KubernetesEnvironment.
KubeConfigPath
Aspire.Hosting.Azure.Kubernetes.Tests (15)
AzureKubernetesInfrastructureTests.cs (15)
491
Assert.NotNull(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
493
["version --short", $"uninstall aks --namespace default --ignore-not-found --kubeconfig \"{aks.Resource.KubernetesEnvironment.
KubeConfigPath
}\""],
574
Assert.NotNull(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
576
["version --short", $"uninstall aks --namespace default --ignore-not-found --kubeconfig \"{aks.Resource.KubernetesEnvironment.
KubeConfigPath
}\""],
618
Assert.Null(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
669
Assert.Null(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
704
Assert.Null(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
741
Assert.Null(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
792
Assert.Null(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
864
Assert.Null(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
936
Assert.Null(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
1006
Assert.Null(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
1066
var kubeConfigPath = Assert.IsType<string>(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
1106
Assert.Null(aks.Resource.KubernetesEnvironment.
KubeConfigPath
);
1422
await File.ReadAllTextAsync(aks.Resource.KubernetesEnvironment.
KubeConfigPath
!, TestContext.Current.CancellationToken));
Aspire.Hosting.Kubernetes (35)
CertManagerExtensions.cs (4)
457
if (environment.
KubeConfigPath
is not null)
459
args.Append(CultureInfo.InvariantCulture, $" --kubeconfig \"{environment.
KubeConfigPath
}\"");
522
if (environment.
KubeConfigPath
is not null)
524
args.Append(CultureInfo.InvariantCulture, $" --kubeconfig \"{environment.
KubeConfigPath
}\"");
Deployment\HelmDeploymentEngine.cs (5)
447
if (environment.
KubeConfigPath
is not null)
449
arguments.Append(CultureInfo.InvariantCulture, $" --kubeconfig \"{environment.
KubeConfigPath
}\"");
529
var endpoints = await GetServiceEndpointsAsync(computeResource.Name.ToServiceName(), @namespace, environment.
KubeConfigPath
, context.Logger, context.CancellationToken).ConfigureAwait(false);
622
if (environment.
KubeConfigPath
is not null)
624
arguments += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
KubernetesEnvironmentResource.cs (22)
1534
if (environment.
KubeConfigPath
is not null)
1536
patchArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1594
if (environment.
KubeConfigPath
is not null)
1596
checkArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1639
if (environment.
KubeConfigPath
is not null)
1641
createArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1729
if (environment.
KubeConfigPath
is not null)
1731
getArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1817
if (environment.
KubeConfigPath
is not null)
1819
getArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1905
if (environment.
KubeConfigPath
is not null)
1907
getArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1971
if (environment.
KubeConfigPath
is not null)
1973
patchArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
2081
if (environment.
KubeConfigPath
is not null)
2083
getArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
2152
if (environment.
KubeConfigPath
is not null)
2154
applyArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
2231
if (environment.
KubeConfigPath
is not null)
2233
checkArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
2276
if (environment.
KubeConfigPath
is not null)
2278
createArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
KubernetesHelmChartExtensions.cs (4)
333
if (environment.
KubeConfigPath
is not null)
335
arguments.Append(CultureInfo.InvariantCulture, $" --kubeconfig {QuoteArg(environment.
KubeConfigPath
)}");
432
if (environment.
KubeConfigPath
is not null)
434
arguments.Append(CultureInfo.InvariantCulture, $" --kubeconfig {QuoteArg(environment.
KubeConfigPath
)}");