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)
1496
if (environment.
KubeConfigPath
is not null)
1498
patchArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1556
if (environment.
KubeConfigPath
is not null)
1558
checkArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1601
if (environment.
KubeConfigPath
is not null)
1603
createArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1691
if (environment.
KubeConfigPath
is not null)
1693
getArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1779
if (environment.
KubeConfigPath
is not null)
1781
getArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1867
if (environment.
KubeConfigPath
is not null)
1869
getArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
1933
if (environment.
KubeConfigPath
is not null)
1935
patchArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
2043
if (environment.
KubeConfigPath
is not null)
2045
getArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
2114
if (environment.
KubeConfigPath
is not null)
2116
applyArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
2193
if (environment.
KubeConfigPath
is not null)
2195
checkArgs += $" --kubeconfig \"{environment.
KubeConfigPath
}\"";
2238
if (environment.
KubeConfigPath
is not null)
2240
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
)}");