Click or drag to resize

KubeHelperGetKubeUserFolder Method

Returns the path the folder holding the user specific Kubernetes configuration files.

Namespace:  Neon.Kube
Assembly:  Neon.Kube (in Neon.Kube.dll) Version: 2.1.0
public static string GetKubeUserFolder(
	bool ignoreNeonToolContainerVar = false


ignoreNeonToolContainerVar (Optional)
Type: SystemBoolean
Optionally ignore the presence of a NEON_TOOL_CONTAINER environment variable. Defaults to false.

Return Value

Type: String
The folder path.
The actual path return depends on the presence of the NEON_TOOL_CONTAINER environment variable. NEON_TOOL_CONTAINER=1 then we're running in a shimmed Docker container and we'll expect the cluster login information to be mounted at /$HOME/.kube. Otherwise, we'll return a suitable path within the current user's home directory.
See Also