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)
1534if (environment.KubeConfigPath is not null) 1536patchArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1594if (environment.KubeConfigPath is not null) 1596checkArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1639if (environment.KubeConfigPath is not null) 1641createArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1729if (environment.KubeConfigPath is not null) 1731getArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1817if (environment.KubeConfigPath is not null) 1819getArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1905if (environment.KubeConfigPath is not null) 1907getArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 1971if (environment.KubeConfigPath is not null) 1973patchArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 2081if (environment.KubeConfigPath is not null) 2083getArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 2152if (environment.KubeConfigPath is not null) 2154applyArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 2231if (environment.KubeConfigPath is not null) 2233checkArgs += $" --kubeconfig \"{environment.KubeConfigPath}\""; 2276if (environment.KubeConfigPath is not null) 2278createArgs += $" --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)}");