kubernetes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VolumeMountReadOnly  = iota
	VolumeMountReadWrite = iota
)
View Source
const (
	CurrentVersion = "v1.13.4"
)

Variables

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

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

type ComponentsVersion

type ComponentsVersion struct {
	KubeletVersion string
}

type ControlPlaneComponentsVersion

type ControlPlaneComponentsVersion struct {
	EtcdVersion    string
	CoreDNSVersion string
	PauseVersion   string
}

type KubernetesVersion

type KubernetesVersion struct {
	ControlPlaneComponentsVersion ControlPlaneComponentsVersion
	ComponentsVersion             ComponentsVersion
}

type VolumeMountMode

type VolumeMountMode uint32

Jump to

Keyboard shortcuts

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