You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support relative paths in Kubernetes configuration files (#141)
* Support relative paths in Kubernetes configuration files
* Filename -> FileName
* Filename -> FileName
* KuberentesClientConfiguration: Allow the user to opt-out of the mechanism which resolves relative paths in the configuration file.
* Update unit tests
* Fix test
Copy file name to clipboardExpand all lines: src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs
+73-24Lines changed: 73 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -28,28 +28,32 @@ public partial class KubernetesClientConfiguration
28
28
/// Initializes a new instance of the <see cref="KubernetesClientConfiguration" /> from config file
29
29
/// </summary>
30
30
/// <param name="masterUrl">kube api server endpoint</param>
31
-
/// <param name="kubeconfigPath">Explicit file path to kubeconfig. Set to null to use the default file path</param>
31
+
/// <param name="kubeconfigPath">Explicit file path to kubeconfig. Set to null to use the default file path</param>
32
+
/// <param name="useRelativePaths">When <see langword="true"/>, the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig
33
+
/// file is located. When <see langword="false"/>, the paths will be considered to be relative to the current working directory.</param>
/// <param name="kubeconfig">Fileinfo of the kubeconfig, cannot be null</param>
42
44
/// <param name="currentContext">override the context in config file, set null if do not want to override</param>
43
-
/// <param name="masterUrl">overrider kube api server endpoint, set null if do not want to override</param>
45
+
/// <param name="masterUrl">override the kube api server endpoint, set null if do not want to override</param>
46
+
/// <param name="useRelativePaths">When <see langword="true"/>, the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig
47
+
/// file is located. When <see langword="false"/>, the paths will be considered to be relative to the current working directory.</param>
/// <param name="kubeconfigPath">Explicit file path to kubeconfig. Set to null to use the default file path</param>
253
+
/// <param name="useRelativePaths">When <see langword="true"/>, the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig
254
+
/// file is located. When <see langword="false"/>, the paths will be considered to be relative to the current working directory.</param>
255
+
/// <returns>Instance of the <see cref="K8SConfiguration"/> class</returns>
/// <param name="kubeconfigPath">Explicit file path to kubeconfig. Set to null to use the default file path</param>
267
+
/// <param name="useRelativePaths">When <see langword="true"/>, the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig
268
+
/// file is located. When <see langword="false"/>, the paths will be considered to be relative to the current working directory.</param>
269
+
/// <returns>Instance of the <see cref="K8SConfiguration"/> class</returns>
/// <param name="useRelativePaths">When <see langword="true"/>, the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig
280
+
/// file is located. When <see langword="false"/>, the paths will be considered to be relative to the current working directory.</param>
271
281
/// <returns>Instance of the <see cref="K8SConfiguration"/> class</returns>
/// <param name="useRelativePaths">When <see langword="true"/>, the paths in the kubeconfig file will be considered to be relative to the directory in which the kubeconfig
307
+
/// file is located. When <see langword="false"/>, the paths will be considered to be relative to the current working directory.</param>
289
308
/// <returns>Instance of the <see cref="K8SConfiguration"/> class</returns>
0 commit comments