k8sobject

package
v1.5.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package k8sobject implements Kubernetes object utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTypeMeta

func ExtractTypeMeta(d []byte) (meta runtime.TypeMeta, err error)

ExtractTypeMeta extracts runtime.TypeMeta from encoded raw k8s object.

func ParseVersion added in v1.1.8

func ParseVersion(s string) (v float64)

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"}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL