Click or drag to resize

KubeHelper Methods

The KubeHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberEncryptSensitiveFiles
Ensures that sensitive folders and files on the local workstation are encrypted at rest for security purposes. These include the users .kube, .neonkube, and any the OpenVPN if it exists.
Public methodStatic memberExecInPod
Executes a command in a k8s pod.
Public methodStatic memberGetCachedComponentPath
Returns the path to the cached file for a specific named component with optional version.
Public methodStatic memberGetContextExtension
Returns the kubecontext extension for the structured configuration name.
Public methodStatic memberGetContextExtensionPath
Returns the path to the kubecontext extension file path for a specific context by raw name.
Public methodStatic memberGetKubeUserFolder
Returns the path the folder holding the user specific Kubernetes configuration files.
Public methodStatic memberGetNeonKubeUserFolder
Returns the path the folder holding the user specific Kubernetes files.
Public methodStatic memberGetPlatformCacheFolder
Returns the path to the folder containing cached files for the specified platform.
Public methodStatic memberInitContext
This is used for special situations for setting up a cluster to set an uninitialized Kubernetes config context as the current CurrentContext.
Public methodStatic memberInstallHelm

Ensures that helm tool whose version is at least as great as the requested cluster version is installed to the neonKUBE programs folder by copying the tool from the cache if necessary.

Note Note
This will probably require elevated privileges.
Note Note
This assumes that Helm has already been downloaded and cached and also that more recent Helm releases are backwards compatible with older deployed versions of Tiller.
Public methodStatic memberInstallKubeCtl

Ensures that kubectl tool whose version is at least as great as the Kubernetes cluster version is installed to the neonKUBE programs folder by copying the tool from the cache if necessary.

Note Note
This will probably require elevated privileges.
Note Note
This assumes that kubectl has already been downloaded and cached and also that more recent kubectl releases are backwards compatible with older deployed versions of Kubernetes.
Public methodStatic memberKubectl
Executes a kubectl command on the local workstation.
Public methodStatic memberLoadClientConfig
Loads or reloads the ClientConfig.
Public methodStatic memberLoadConfig
Loads or reloads the Kubernetes configuration.
Public methodStatic memberLookupPassword
Looks up a password given its name.
Public methodStatic memberPortForward
Executes a kubectl port-forward command on the local workstation.
Public methodStatic memberResetTestMode
Resets the test mode, restoring normal operation.
Public methodStatic memberSaveClientState
Persists the ClientConfig to disk.
Public methodStatic memberSetConfig
Rewrites the local kubeconfig file.
Public methodStatic memberSetCurrentContext(String)
Sets the current Kubernetes config context by string name.
Public methodStatic memberSetCurrentContext(KubeContextName)
Sets the current Kubernetes config context.
Public methodStatic memberSetLogger
Explicitly sets the class INeonLogger implementation. This defaults to a reasonable value.
Public methodStatic memberSetTestMode
Puts KubeHelper into test mode to support unit testing. This changes the folders where Kubernetes and neonKUBE persists their state to directories beneath the folder passed. This also modifies the KUBECONFIG environment variable to reference the new location.
Top
See Also