callbacks

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDaemonSetContainers

func GetDaemonSetContainers(item interface{}) []v1.Container

GetDaemonSetContainers returns the containers of given daemonset

func GetDaemonSetInitContainers added in v0.0.26

func GetDaemonSetInitContainers(item interface{}) []v1.Container

GetDaemonSetInitContainers returns the containers of given daemonset

func GetDaemonSetItems

func GetDaemonSetItems(clients kube.Clients, namespace string) []interface{}

GetDaemonSetItems returns the daemonSets in given namespace

func GetDaemonSetVolumes added in v0.0.22

func GetDaemonSetVolumes(item interface{}) []v1.Volume

GetDaemonSetVolumes returns the Volumes of given daemonset

func GetDeploymentConfigContainers added in v0.0.37

func GetDeploymentConfigContainers(item interface{}) []v1.Container

GetDeploymentConfigContainers returns the containers of given deploymentConfig

func GetDeploymentConfigInitContainers added in v0.0.37

func GetDeploymentConfigInitContainers(item interface{}) []v1.Container

GetDeploymentConfigInitContainers returns the containers of given deploymentConfig

func GetDeploymentConfigItems added in v0.0.37

func GetDeploymentConfigItems(clients kube.Clients, namespace string) []interface{}

GetDeploymentConfigItems returns the deploymentConfigs in given namespace

func GetDeploymentConfigVolumes added in v0.0.37

func GetDeploymentConfigVolumes(item interface{}) []v1.Volume

GetDeploymentConfigVolumes returns the Volumes of given deploymentConfig

func GetDeploymentContainers

func GetDeploymentContainers(item interface{}) []v1.Container

GetDeploymentContainers returns the containers of given deployment

func GetDeploymentInitContainers added in v0.0.26

func GetDeploymentInitContainers(item interface{}) []v1.Container

GetDeploymentInitContainers returns the containers of given deployment

func GetDeploymentItems

func GetDeploymentItems(clients kube.Clients, namespace string) []interface{}

GetDeploymentItems returns the deployments in given namespace

func GetDeploymentVolumes added in v0.0.22

func GetDeploymentVolumes(item interface{}) []v1.Volume

GetDeploymentVolumes returns the Volumes of given deployment

func GetStatefulSetItems

func GetStatefulSetItems(clients kube.Clients, namespace string) []interface{}

GetStatefulSetItems returns the statefulSets in given namespace

func GetStatefulsetContainers

func GetStatefulsetContainers(item interface{}) []v1.Container

GetStatefulsetContainers returns the containers of given statefulSet

func GetStatefulsetInitContainers added in v0.0.26

func GetStatefulsetInitContainers(item interface{}) []v1.Container

GetStatefulsetInitContainers returns the containers of given statefulSet

func GetStatefulsetVolumes added in v0.0.22

func GetStatefulsetVolumes(item interface{}) []v1.Volume

GetStatefulsetVolumes returns the Volumes of given statefulSet

func UpdateDaemonSet

func UpdateDaemonSet(clients kube.Clients, namespace string, resource interface{}) error

UpdateDaemonSet performs rolling upgrade on daemonSet

func UpdateDeployment

func UpdateDeployment(clients kube.Clients, namespace string, resource interface{}) error

UpdateDeployment performs rolling upgrade on deployment

func UpdateDeploymentConfig added in v0.0.37

func UpdateDeploymentConfig(clients kube.Clients, namespace string, resource interface{}) error

UpdateDeploymentConfig performs rolling upgrade on deploymentConfig

func UpdateStatefulset

func UpdateStatefulset(clients kube.Clients, namespace string, resource interface{}) error

UpdateStatefulset performs rolling upgrade on statefulSet

Types

type ContainersFunc

type ContainersFunc func(interface{}) []v1.Container

ContainersFunc is a generic func to return containers

type InitContainersFunc added in v0.0.26

type InitContainersFunc func(interface{}) []v1.Container

InitContainersFunc is a generic func to return containers

type ItemsFunc

type ItemsFunc func(kube.Clients, string) []interface{}

ItemsFunc is a generic function to return a specific resource array in given namespace

type RollingUpgradeFuncs

type RollingUpgradeFuncs struct {
	ItemsFunc          ItemsFunc
	ContainersFunc     ContainersFunc
	InitContainersFunc InitContainersFunc
	UpdateFunc         UpdateFunc
	VolumesFunc        VolumesFunc
	ResourceType       string
}

RollingUpgradeFuncs contains generic functions to perform rolling upgrade

type UpdateFunc

type UpdateFunc func(kube.Clients, string, interface{}) error

UpdateFunc performs the resource update

type VolumesFunc added in v0.0.22

type VolumesFunc func(interface{}) []v1.Volume

VolumesFunc is a generic func to return volumes

Jump to

Keyboard shortcuts

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