2 writes to KubeConfigPath
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (2)
288KubernetesEnvironment.KubeConfigPath = null; 331KubernetesEnvironment.KubeConfigPath = kubeConfigPath;
51 references to KubeConfigPath
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
547var kubeConfigPath = KubernetesEnvironment.KubeConfigPath
Aspire.Hosting.Azure.Kubernetes.Tests (15)
AzureKubernetesInfrastructureTests.cs (15)
491Assert.NotNull(aks.Resource.KubernetesEnvironment.KubeConfigPath); 493["version --short", $"uninstall aks --namespace default --ignore-not-found --kubeconfig \"{aks.Resource.KubernetesEnvironment.KubeConfigPath}\""], 574Assert.NotNull(aks.Resource.KubernetesEnvironment.KubeConfigPath); 576["version --short", $"uninstall aks --namespace default --ignore-not-found --kubeconfig \"{aks.Resource.KubernetesEnvironment.KubeConfigPath}\""], 618Assert.Null(aks.Resource.KubernetesEnvironment.KubeConfigPath); 669Assert.Null(aks.Resource.KubernetesEnvironment.KubeConfigPath); 704Assert.Null(aks.Resource.KubernetesEnvironment.KubeConfigPath); 741Assert.Null(aks.Resource.KubernetesEnvironment.KubeConfigPath); 792Assert.Null(aks.Resource.KubernetesEnvironment.KubeConfigPath); 864Assert.Null(aks.Resource.KubernetesEnvironment.KubeConfigPath); 936Assert.Null(aks.Resource.KubernetesEnvironment.KubeConfigPath); 1006Assert.Null(aks.Resource.KubernetesEnvironment.KubeConfigPath); 1066var kubeConfigPath = Assert.IsType<string>(aks.Resource.KubernetesEnvironment.KubeConfigPath); 1106Assert.Null(aks.Resource.KubernetesEnvironment.KubeConfigPath); 1422await File.ReadAllTextAsync(aks.Resource.KubernetesEnvironment.KubeConfigPath!, TestContext.Current.CancellationToken));
Aspire.Hosting.Kubernetes (35)
CertManagerExtensions.cs (4)
457if (environment.KubeConfigPath is not null) 459args.Append(CultureInfo.InvariantCulture, $" --kubeconfig \"{environment.KubeConfigPath}\""); 522if (environment.KubeConfigPath is not null) 524args.Append(CultureInfo.InvariantCulture, $" --kubeconfig \"{environment.KubeConfigPath}\"");
Deployment\HelmDeploymentEngine.cs (5)
447if (environment.KubeConfigPath is not null) 449arguments.Append(CultureInfo.InvariantCulture, $" --kubeconfig \"{environment.KubeConfigPath}\""); 529var endpoints = await GetServiceEndpointsAsync(computeResource.Name.ToServiceName(), @namespace, environment.KubeConfigPath, context.Logger, context.CancellationToken).ConfigureAwait(false); 622if (environment.KubeConfigPath is not null) 624arguments += $" --kubeconfig \"{environment.KubeConfigPath}\"";
KubernetesEnvironmentResource.cs (22)
1496if (environment.KubeConfigPath is not null) 1498patchArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1556if (environment.KubeConfigPath is not null) 1558checkArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1601if (environment.KubeConfigPath is not null) 1603createArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1691if (environment.KubeConfigPath is not null) 1693getArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1779if (environment.KubeConfigPath is not null) 1781getArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1867if (environment.KubeConfigPath is not null) 1869getArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1933if (environment.KubeConfigPath is not null) 1935patchArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 2043if (environment.KubeConfigPath is not null) 2045getArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 2114if (environment.KubeConfigPath is not null) 2116applyArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 2193if (environment.KubeConfigPath is not null) 2195checkArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 2238if (environment.KubeConfigPath is not null) 2240createArgs += $" --kubeconfig \"{environment.KubeConfigPath}\"";
KubernetesHelmChartExtensions.cs (4)
333if (environment.KubeConfigPath is not null) 335arguments.Append(CultureInfo.InvariantCulture, $" --kubeconfig {QuoteArg(environment.KubeConfigPath)}"); 432if (environment.KubeConfigPath is not null) 434arguments.Append(CultureInfo.InvariantCulture, $" --kubeconfig {QuoteArg(environment.KubeConfigPath)}");