Documentation ¶
Overview ¶
Package k8sobject implements Kubernetes object utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTypeMeta ¶
ExtractTypeMeta extracts runtime.TypeMeta from encoded raw k8s object.
func ParseVersion ¶ added in v1.1.8
ParseVersion parses the version string. Returns 0.0 if not valid.
Types ¶
type NodeInfo ¶ added in v1.1.5
type NodeInfo struct { v1.NodeSystemInfo KubeletMinorVersionValue float64 `json:"kubelet-minor-version-value"` KubeProxyMinorVersionValue float64 `json:"kube-proxy-minor-version-value"` }
func ParseNodeInfo ¶ added in v1.1.5
func ParseNodeInfo(info v1.NodeSystemInfo) (nodeInfo NodeInfo)
ParseNodeInfo parses the node info. e.g. {"machineID":"","systemUUID":"","bootID":"","kernelVersion":"4.14.173-137.229.amzn2.x86_64","osImage":"Amazon Linux 2","containerRuntimeVersion":"docker://19.3.6","kubeletVersion":"v1.16.8-eks-e16311","kubeProxyVersion":"v1.16.8-eks-e16311","operatingSystem":"linux","architecture":"amd64"}
Click to show internal directories.
Click to hide internal directories.