Top Level Namespace
Defined in:
Method Summary
-
acceptable_kubectl_version?(kubectl_response, verbose = false)
Check if client version is not too many versions behind server version
- kubectl_global_response(verbose = false)
- kubectl_installation(verbose = false, offline_mode = false)
- kubectl_local_response(verbose = false)
-
kubectl_version(kubectl_response, version_for = "client", verbose = false)
Extracts Kubernetes client version or server version
- local_kubectl_path
- stdout_failure(msg)
- stdout_info(msg)
- stdout_success(msg)
- stdout_warning(msg)
Method Detail
def acceptable_kubectl_version?(kubectl_response, verbose = false)
#
Check if client version is not too many versions behind server version
Extracts Kubernetes client version or server version
version = kubectl_version(kubectl_response, "client")
version # => "1.12"
version = kubectl_version(kubectl_response, "server")
version # => "1.12"
Returns the version as a string (Example: 1.12, 1.20, etc)