callbacks

package
v0.0.90 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDaemonSetAnnotations added in v0.0.52

func GetDaemonSetAnnotations(item interface{}) map[string]string

GetDaemonSetAnnotations returns the annotations of given daemonSet

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 GetDaemonSetPodAnnotations added in v0.0.52

func GetDaemonSetPodAnnotations(item interface{}) map[string]string

GetDaemonSetPodAnnotations returns the pod's annotations of given daemonSet

func GetDaemonSetVolumes added in v0.0.22

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

GetDaemonSetVolumes returns the Volumes of given daemonSet

func GetDeploymentAnnotations added in v0.0.52

func GetDeploymentAnnotations(item interface{}) map[string]string

GetDeploymentAnnotations returns the annotations of given deployment

func GetDeploymentConfigAnnotations added in v0.0.52

func GetDeploymentConfigAnnotations(item interface{}) map[string]string

GetDeploymentConfigAnnotations returns the annotations of given deploymentConfig

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 GetDeploymentConfigPodAnnotations added in v0.0.52

func GetDeploymentConfigPodAnnotations(item interface{}) map[string]string

GetDeploymentConfigPodAnnotations returns the pod's annotations of given deploymentConfig

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 GetDeploymentPodAnnotations added in v0.0.52

func GetDeploymentPodAnnotations(item interface{}) map[string]string

GetDeploymentPodAnnotations returns the pod's annotations of given deployment

func GetDeploymentVolumes added in v0.0.22

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

GetDeploymentVolumes returns the Volumes of given deployment

func GetRolloutAnnotations added in v0.0.83

func GetRolloutAnnotations(item interface{}) map[string]string

GetRolloutAnnotations returns the annotations of given rollout

func GetRolloutContainers added in v0.0.83

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

GetRolloutContainers returns the containers of given rollout

func GetRolloutInitContainers added in v0.0.83

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

GetRolloutInitContainers returns the containers of given rollout

func GetRolloutItems added in v0.0.83

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

GetRolloutItems returns the rollouts in given namespace

func GetRolloutPodAnnotations added in v0.0.83

func GetRolloutPodAnnotations(item interface{}) map[string]string

GetRolloutPodAnnotations returns the pod's annotations of given rollout

func GetRolloutVolumes added in v0.0.83

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

GetRolloutVolumes returns the Volumes of given rollout

func GetStatefulSetAnnotations added in v0.0.52

func GetStatefulSetAnnotations(item interface{}) map[string]string

GetStatefulSetAnnotations returns the annotations of given statefulSet

func GetStatefulSetContainers added in v0.0.52

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

GetStatefulSetContainers returns the containers of given statefulSet

func GetStatefulSetInitContainers added in v0.0.52

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

GetStatefulSetInitContainers returns the containers of given statefulSet

func GetStatefulSetItems

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

GetStatefulSetItems returns the statefulSets in given namespace

func GetStatefulSetPodAnnotations added in v0.0.52

func GetStatefulSetPodAnnotations(item interface{}) map[string]string

GetStatefulSetPodAnnotations returns the pod's annotations of given statefulSet

func GetStatefulSetVolumes added in v0.0.52

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 UpdateRollout added in v0.0.83

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

UpdateRollout performs rolling upgrade on rollout

func UpdateStatefulSet added in v0.0.52

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

UpdateStatefulSet performs rolling upgrade on statefulSet

Types

type AnnotationsFunc added in v0.0.52

type AnnotationsFunc func(interface{}) map[string]string

AnnotationsFunc is a generic func to return annotations

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 PodAnnotationsFunc added in v0.0.52

type PodAnnotationsFunc func(interface{}) map[string]string

PodAnnotationsFunc is a generic func to return annotations

type RollingUpgradeFuncs

type RollingUpgradeFuncs struct {
	ItemsFunc          ItemsFunc
	AnnotationsFunc    AnnotationsFunc
	PodAnnotationsFunc PodAnnotationsFunc
	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