callbacks

package
v0.0.0-...-1d63875 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDaemonSetAnnotations

func GetDaemonSetAnnotations(item runtime.Object) map[string]string

GetDaemonSetAnnotations returns the annotations of given daemonSet

func GetDaemonSetContainers

func GetDaemonSetContainers(item runtime.Object) []v1.Container

GetDaemonSetContainers returns the containers of given daemonSet

func GetDaemonSetInitContainers

func GetDaemonSetInitContainers(item runtime.Object) []v1.Container

GetDaemonSetInitContainers returns the containers of given daemonSet

func GetDaemonSetItems

func GetDaemonSetItems(clients kube.Clients, namespace string) []runtime.Object

GetDaemonSetItems returns the daemonSets in given namespace

func GetDaemonSetPodAnnotations

func GetDaemonSetPodAnnotations(item runtime.Object) map[string]string

GetDaemonSetPodAnnotations returns the pod's annotations of given daemonSet

func GetDaemonSetVolumes

func GetDaemonSetVolumes(item runtime.Object) []v1.Volume

GetDaemonSetVolumes returns the Volumes of given daemonSet

func GetDeploymentAnnotations

func GetDeploymentAnnotations(item runtime.Object) map[string]string

GetDeploymentAnnotations returns the annotations of given deployment

func GetDeploymentConfigAnnotations

func GetDeploymentConfigAnnotations(item runtime.Object) map[string]string

GetDeploymentConfigAnnotations returns the annotations of given deploymentConfig

func GetDeploymentConfigContainers

func GetDeploymentConfigContainers(item runtime.Object) []v1.Container

GetDeploymentConfigContainers returns the containers of given deploymentConfig

func GetDeploymentConfigInitContainers

func GetDeploymentConfigInitContainers(item runtime.Object) []v1.Container

GetDeploymentConfigInitContainers returns the containers of given deploymentConfig

func GetDeploymentConfigItems

func GetDeploymentConfigItems(clients kube.Clients, namespace string) []runtime.Object

GetDeploymentConfigItems returns the deploymentConfigs in given namespace

func GetDeploymentConfigPodAnnotations

func GetDeploymentConfigPodAnnotations(item runtime.Object) map[string]string

GetDeploymentConfigPodAnnotations returns the pod's annotations of given deploymentConfig

func GetDeploymentConfigVolumes

func GetDeploymentConfigVolumes(item runtime.Object) []v1.Volume

GetDeploymentConfigVolumes returns the Volumes of given deploymentConfig

func GetDeploymentContainers

func GetDeploymentContainers(item runtime.Object) []v1.Container

GetDeploymentContainers returns the containers of given deployment

func GetDeploymentInitContainers

func GetDeploymentInitContainers(item runtime.Object) []v1.Container

GetDeploymentInitContainers returns the containers of given deployment

func GetDeploymentItems

func GetDeploymentItems(clients kube.Clients, namespace string) []runtime.Object

GetDeploymentItems returns the deployments in given namespace

func GetDeploymentPodAnnotations

func GetDeploymentPodAnnotations(item runtime.Object) map[string]string

GetDeploymentPodAnnotations returns the pod's annotations of given deployment

func GetDeploymentVolumes

func GetDeploymentVolumes(item runtime.Object) []v1.Volume

GetDeploymentVolumes returns the Volumes of given deployment

func GetRolloutAnnotations

func GetRolloutAnnotations(item runtime.Object) map[string]string

GetRolloutAnnotations returns the annotations of given rollout

func GetRolloutContainers

func GetRolloutContainers(item runtime.Object) []v1.Container

GetRolloutContainers returns the containers of given rollout

func GetRolloutInitContainers

func GetRolloutInitContainers(item runtime.Object) []v1.Container

GetRolloutInitContainers returns the containers of given rollout

func GetRolloutItems

func GetRolloutItems(clients kube.Clients, namespace string) []runtime.Object

GetRolloutItems returns the rollouts in given namespace

func GetRolloutPodAnnotations

func GetRolloutPodAnnotations(item runtime.Object) map[string]string

GetRolloutPodAnnotations returns the pod's annotations of given rollout

func GetRolloutVolumes

func GetRolloutVolumes(item runtime.Object) []v1.Volume

GetRolloutVolumes returns the Volumes of given rollout

func GetStatefulSetAnnotations

func GetStatefulSetAnnotations(item runtime.Object) map[string]string

GetStatefulSetAnnotations returns the annotations of given statefulSet

func GetStatefulSetContainers

func GetStatefulSetContainers(item runtime.Object) []v1.Container

GetStatefulSetContainers returns the containers of given statefulSet

func GetStatefulSetInitContainers

func GetStatefulSetInitContainers(item runtime.Object) []v1.Container

GetStatefulSetInitContainers returns the containers of given statefulSet

func GetStatefulSetItems

func GetStatefulSetItems(clients kube.Clients, namespace string) []runtime.Object

GetStatefulSetItems returns the statefulSets in given namespace

func GetStatefulSetPodAnnotations

func GetStatefulSetPodAnnotations(item runtime.Object) map[string]string

GetStatefulSetPodAnnotations returns the pod's annotations of given statefulSet

func GetStatefulSetVolumes

func GetStatefulSetVolumes(item runtime.Object) []v1.Volume

GetStatefulSetVolumes returns the Volumes of given statefulSet

func UpdateDaemonSet

func UpdateDaemonSet(clients kube.Clients, namespace string, resource runtime.Object) error

UpdateDaemonSet performs rolling upgrade on daemonSet

func UpdateDeployment

func UpdateDeployment(clients kube.Clients, namespace string, resource runtime.Object) error

UpdateDeployment performs rolling upgrade on deployment

func UpdateDeploymentConfig

func UpdateDeploymentConfig(clients kube.Clients, namespace string, resource runtime.Object) error

UpdateDeploymentConfig performs rolling upgrade on deploymentConfig

func UpdateRollout

func UpdateRollout(clients kube.Clients, namespace string, resource runtime.Object) error

UpdateRollout performs rolling upgrade on rollout

func UpdateStatefulSet

func UpdateStatefulSet(clients kube.Clients, namespace string, resource runtime.Object) error

UpdateStatefulSet performs rolling upgrade on statefulSet

Types

type AnnotationsFunc

type AnnotationsFunc func(runtime.Object) map[string]string

AnnotationsFunc is a generic func to return annotations

type ContainersFunc

type ContainersFunc func(runtime.Object) []v1.Container

ContainersFunc is a generic func to return containers

type InitContainersFunc

type InitContainersFunc func(runtime.Object) []v1.Container

InitContainersFunc is a generic func to return containers

type ItemsFunc

type ItemsFunc func(kube.Clients, string) []runtime.Object

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

type PodAnnotationsFunc

type PodAnnotationsFunc func(runtime.Object) 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, runtime.Object) error

UpdateFunc performs the resource update

type VolumesFunc

type VolumesFunc func(runtime.Object) []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