types

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonSet

type DaemonSet appsv1.DaemonSet

func (*DaemonSet) GetPodTemplate

func (w *DaemonSet) GetPodTemplate() corev1.PodTemplateSpec

func (*DaemonSet) Kind

func (w *DaemonSet) Kind() string

type Deployment

type Deployment appsv1.Deployment

func (*Deployment) GetPodTemplate

func (w *Deployment) GetPodTemplate() corev1.PodTemplateSpec

func (*Deployment) Kind

func (w *Deployment) Kind() string

type StatefulSet

type StatefulSet appsv1.StatefulSet

func (*StatefulSet) GetPodTemplate

func (w *StatefulSet) GetPodTemplate() corev1.PodTemplateSpec

func (*StatefulSet) Kind

func (w *StatefulSet) Kind() string

type Workload

type Workload interface {
	metav1.Object
	Kind() string
	GetPodTemplate() corev1.PodTemplateSpec
}

a workload represents a controller for k8s pods supported types: - Deployment - DaemonSet - StatefulSet

func ToWorkload

func ToWorkload(workload metav1.Object) Workload

cast to our type

Jump to

Keyboard shortcuts

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