Documentation ¶
Index ¶
- Constants
- Variables
- func CreateAndWaitForJob(name string, spec batchv1.JobSpec) error
- func CreateJob(name string, spec batchv1.JobSpec) (*batchv1.Job, error)
- func CurrentComponentVersion(component Component) string
- func DeleteJob(name string) error
- func DisarmKubelet(node *v1.Node) error
- func DrainNode(node *v1.Node) error
- func GetAdminClientSet() *clientset.Clientset
- func GetMasterNodes() (*v1.NodeList, error)
- func HostMount(name, mount string) v1.Volume
- func IsMaster(node *v1.Node) bool
- func VolumeMount(name, mount string, mode VolumeMountMode) v1.VolumeMount
- type Component
- type ComponentsVersion
- type ControlPlaneComponentsVersion
- type KubernetesVersion
- type VolumeMountMode
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 CurrentComponentVersion ¶
func DisarmKubelet ¶
func GetAdminClientSet ¶
func GetMasterNodes ¶
func VolumeMount ¶
func VolumeMount(name, mount string, mode VolumeMountMode) v1.VolumeMount
Types ¶
type ComponentsVersion ¶
type ComponentsVersion struct {
KubeletVersion string
}
type KubernetesVersion ¶
type KubernetesVersion struct { ControlPlaneComponentsVersion ControlPlaneComponentsVersion ComponentsVersion ComponentsVersion }
type VolumeMountMode ¶
type VolumeMountMode uint
const ( VolumeMountReadOnly VolumeMountMode = iota VolumeMountReadWrite VolumeMountMode = iota )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.