callbacks

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJobFromCronjob added in v1.0.42

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

CreateJobFromCronjob performs rolling upgrade on cronjob

func GetCronJobAnnotations added in v1.0.42

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

GetCronJobAnnotations returns the annotations of given cronjob

func GetCronJobContainers added in v1.0.42

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

GetCronJobContainers returns the containers of given cronjob

func GetCronJobInitContainers added in v1.0.42

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

GetCronJobInitContainers returns the containers of given cronjob

func GetCronJobItem added in v1.4.3

func GetCronJobItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)

GetCronJobItem returns the job in given namespace

func GetCronJobItems added in v1.0.42

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

GetCronJobItems returns the jobs in given namespace

func GetCronJobPodAnnotations added in v1.0.42

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

GetCronJobPodAnnotations returns the pod's annotations of given cronjob

func GetCronJobVolumes added in v1.0.42

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

GetCronJobVolumes returns the Volumes of given cronjob

func GetDaemonSetAnnotations added in v0.0.52

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

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

GetDaemonSetInitContainers returns the containers of given daemonSet

func GetDaemonSetItem added in v1.4.3

func GetDaemonSetItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)

GetDaemonSetItem returns the daemonSet in given namespace

func GetDaemonSetItems

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

GetDaemonSetItems returns the daemonSets in given namespace

func GetDaemonSetPodAnnotations added in v0.0.52

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

GetDaemonSetPodAnnotations returns the pod's annotations of given daemonSet

func GetDaemonSetVolumes added in v0.0.22

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

GetDaemonSetVolumes returns the Volumes of given daemonSet

func GetDeploymentAnnotations added in v0.0.52

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

GetDeploymentAnnotations returns the annotations of given deployment

func GetDeploymentContainers

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

GetDeploymentContainers returns the containers of given deployment

func GetDeploymentInitContainers added in v0.0.26

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

GetDeploymentInitContainers returns the containers of given deployment

func GetDeploymentItem added in v1.4.3

func GetDeploymentItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)

GetDeploymentItem returns the deployment in given namespace

func GetDeploymentItems

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

GetDeploymentItems returns the deployments in given namespace

func GetDeploymentPodAnnotations added in v0.0.52

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

GetDeploymentPodAnnotations returns the pod's annotations of given deployment

func GetDeploymentVolumes added in v0.0.22

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

GetDeploymentVolumes returns the Volumes of given deployment

func GetJobAnnotations added in v1.3.0

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

GetJobAnnotations returns the annotations of given job

func GetJobContainers added in v1.3.0

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

GetJobContainers returns the containers of given job

func GetJobInitContainers added in v1.3.0

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

GetJobInitContainers returns the containers of given job

func GetJobItem added in v1.4.3

func GetJobItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)

GetJobItem returns the job in given namespace

func GetJobItems added in v1.3.0

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

GetJobItems returns the jobs in given namespace

func GetJobPodAnnotations added in v1.3.0

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

GetJobPodAnnotations returns the pod's annotations of given job

func GetJobVolumes added in v1.3.0

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

GetJobVolumes returns the Volumes of given job

func GetRolloutAnnotations added in v0.0.83

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

GetRolloutAnnotations returns the annotations of given rollout

func GetRolloutContainers added in v0.0.83

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

GetRolloutContainers returns the containers of given rollout

func GetRolloutInitContainers added in v0.0.83

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

GetRolloutInitContainers returns the containers of given rollout

func GetRolloutItem added in v1.4.3

func GetRolloutItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)

GetRolloutItem returns the rollout in given namespace

func GetRolloutItems added in v0.0.83

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

GetRolloutItems returns the rollouts in given namespace

func GetRolloutPodAnnotations added in v0.0.83

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

GetRolloutPodAnnotations returns the pod's annotations of given rollout

func GetRolloutVolumes added in v0.0.83

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

GetRolloutVolumes returns the Volumes of given rollout

func GetStatefulSetAnnotations added in v0.0.52

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

GetStatefulSetAnnotations returns the annotations of given statefulSet

func GetStatefulSetContainers added in v0.0.52

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

GetStatefulSetContainers returns the containers of given statefulSet

func GetStatefulSetInitContainers added in v0.0.52

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

GetStatefulSetInitContainers returns the containers of given statefulSet

func GetStatefulSetItem added in v1.4.3

func GetStatefulSetItem(clients kube.Clients, name string, namespace string) (runtime.Object, error)

GetStatefulSetItem returns the statefulSet in given namespace

func GetStatefulSetItems

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

GetStatefulSetItems returns the statefulSets in given namespace

func GetStatefulSetPodAnnotations added in v0.0.52

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

GetStatefulSetPodAnnotations returns the pod's annotations of given statefulSet

func GetStatefulSetVolumes added in v0.0.52

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

GetStatefulSetVolumes returns the Volumes of given statefulSet

func PatchCronJob added in v1.4.3

func PatchCronJob(clients kube.Clients, namespace string, resource runtime.Object, patchType patchtypes.PatchType, bytes []byte) error

func PatchDaemonSet added in v1.4.3

func PatchDaemonSet(clients kube.Clients, namespace string, resource runtime.Object, patchType patchtypes.PatchType, bytes []byte) error

func PatchDeployment added in v1.4.3

func PatchDeployment(clients kube.Clients, namespace string, resource runtime.Object, patchType patchtypes.PatchType, bytes []byte) error

PatchDeployment performs rolling upgrade on deployment

func PatchJob added in v1.4.3

func PatchJob(clients kube.Clients, namespace string, resource runtime.Object, patchType patchtypes.PatchType, bytes []byte) error

func PatchRollout added in v1.4.3

func PatchRollout(clients kube.Clients, namespace string, resource runtime.Object, patchType patchtypes.PatchType, bytes []byte) error

func PatchStatefulSet added in v1.4.3

func PatchStatefulSet(clients kube.Clients, namespace string, resource runtime.Object, patchType patchtypes.PatchType, bytes []byte) error

func ReCreateJobFromjob added in v1.3.0

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

ReCreateJobFromjob performs rolling upgrade on job

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

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

UpdateRollout performs rolling upgrade on rollout

func UpdateStatefulSet added in v0.0.52

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

UpdateStatefulSet performs rolling upgrade on statefulSet

Types

type AnnotationsFunc added in v0.0.52

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

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

InitContainersFunc is a generic func to return containers

type ItemFunc added in v1.4.3

type ItemFunc func(kube.Clients, string, string) (runtime.Object, error)

ItemFunc is a generic function to return a specific resource in given namespace

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 PatchFunc added in v1.4.3

PatchFunc performs the resource patch

type PatchTemplates added in v1.4.3

type PatchTemplates struct {
	AnnotationTemplate   string
	EnvVarTemplate       string
	DeleteEnvVarTemplate string
}

PatchTemplates contains merge JSON patch templates

func GetPatchTemplates added in v1.4.3

func GetPatchTemplates() PatchTemplates

GetPatchTemplates returns patch templates

type PatchTemplatesFunc added in v1.4.3

type PatchTemplatesFunc func() PatchTemplates

PatchTemplateFunc is a generic func to return strategic merge JSON patch template

type PodAnnotationsFunc added in v0.0.52

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

PodAnnotationsFunc is a generic func to return annotations

type RollingUpgradeFuncs

type RollingUpgradeFuncs struct {
	ItemFunc               ItemFunc
	ItemsFunc              ItemsFunc
	AnnotationsFunc        AnnotationsFunc
	PodAnnotationsFunc     PodAnnotationsFunc
	ContainersFunc         ContainersFunc
	ContainerPatchPathFunc ContainersFunc
	InitContainersFunc     InitContainersFunc
	UpdateFunc             UpdateFunc
	PatchFunc              PatchFunc
	PatchTemplatesFunc     PatchTemplatesFunc
	VolumesFunc            VolumesFunc
	ResourceType           string
	SupportsPatch          bool
}

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

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