kubernetes

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurrentVersion = "v1.14.0"
)

Variables

View Source
var (
	Versions = map[string]KubernetesVersion{
		"v1.14.0": KubernetesVersion{
			ControlPlaneComponentsVersion: ControlPlaneComponentsVersion{
				EtcdVersion:    "3.3.1",
				CoreDNSVersion: "1.2.6",
				PauseVersion:   "3.1",
				CiliumVersion:  "1.4.0",
			},
			ComponentsVersion: ComponentsVersion{
				KubeletVersion: "1.14.0",
			},
		},
	}
)

Functions

func CreateAndWaitForJob

func CreateAndWaitForJob(name string, spec batchv1.JobSpec) error

func CreateJob

func CreateJob(name string, spec batchv1.JobSpec) (*batchv1.Job, error)

func CurrentComponentVersion

func CurrentComponentVersion(component Component) string

func DeleteJob

func DeleteJob(name string) error

func DisarmKubelet

func DisarmKubelet(node *v1.Node) error

func DrainNode

func DrainNode(node *v1.Node) error

func GetAdminClientSet

func GetAdminClientSet() *clientset.Clientset

func GetMasterNodes

func GetMasterNodes() (*v1.NodeList, error)

func HostMount

func HostMount(name, mount string) v1.Volume

func IsMaster

func IsMaster(node *v1.Node) bool

func VolumeMount

func VolumeMount(name, mount string, mode VolumeMountMode) v1.VolumeMount

Types

type Component

type Component string
const (
	Etcd    Component = "etcd"
	CoreDNS Component = "coredns"
	Pause   Component = "pause"
	Cilium  Component = "cilium"
)

type ComponentsVersion

type ComponentsVersion struct {
	KubeletVersion string
}

type ControlPlaneComponentsVersion

type ControlPlaneComponentsVersion struct {
	EtcdVersion    string
	CoreDNSVersion string
	PauseVersion   string
	CiliumVersion  string
}

type KubernetesVersion

type KubernetesVersion struct {
	ControlPlaneComponentsVersion ControlPlaneComponentsVersion
	ComponentsVersion             ComponentsVersion
}

type VolumeMountMode

type VolumeMountMode uint
const (
	VolumeMountReadOnly  VolumeMountMode = iota
	VolumeMountReadWrite VolumeMountMode = iota
)

Jump to

Keyboard shortcuts

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