handler

package
v1.0.118 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArgoRolloutRollingUpgradeFuncs added in v0.0.83

func GetArgoRolloutRollingUpgradeFuncs() callbacks.RollingUpgradeFuncs

GetArgoRolloutRollingUpgradeFuncs returns all callback funcs for a rollout

func GetCronJobCreateJobFuncs added in v1.0.42

func GetCronJobCreateJobFuncs() callbacks.RollingUpgradeFuncs

GetDeploymentRollingUpgradeFuncs returns all callback funcs for a cronjob

func GetDaemonSetRollingUpgradeFuncs added in v0.0.22

func GetDaemonSetRollingUpgradeFuncs() callbacks.RollingUpgradeFuncs

GetDaemonSetRollingUpgradeFuncs returns all callback funcs for a daemonset

func GetDeploymentConfigRollingUpgradeFuncs added in v0.0.37

func GetDeploymentConfigRollingUpgradeFuncs() callbacks.RollingUpgradeFuncs

GetDeploymentConfigRollingUpgradeFuncs returns all callback funcs for a deploymentConfig

func GetDeploymentRollingUpgradeFuncs added in v0.0.22

func GetDeploymentRollingUpgradeFuncs() callbacks.RollingUpgradeFuncs

GetDeploymentRollingUpgradeFuncs returns all callback funcs for a deployment

func GetStatefulSetRollingUpgradeFuncs added in v0.0.22

func GetStatefulSetRollingUpgradeFuncs() callbacks.RollingUpgradeFuncs

GetStatefulSetRollingUpgradeFuncs returns all callback funcs for a statefulSet

func PerformAction added in v1.0.116

func PerformAction(clients kube.Clients, config util.Config, upgradeFuncs callbacks.RollingUpgradeFuncs, collectors metrics.Collectors, recorder record.EventRecorder, strategy invokeStrategy) error

PerformAction invokes the deployment if there is any change in configmap or secret data

Types

type ResourceCreatedHandler

type ResourceCreatedHandler struct {
	Resource   interface{}
	Collectors metrics.Collectors
	Recorder   record.EventRecorder
}

ResourceCreatedHandler contains new objects

func (ResourceCreatedHandler) GetConfig added in v0.0.22

func (r ResourceCreatedHandler) GetConfig() (util.Config, string)

GetConfig gets configurations containing SHA, annotations, namespace and resource name

func (ResourceCreatedHandler) Handle

func (r ResourceCreatedHandler) Handle() error

Handle processes the newly created resource

type ResourceDeleteHandler added in v1.0.116

type ResourceDeleteHandler struct {
	Resource   interface{}
	Collectors metrics.Collectors
	Recorder   record.EventRecorder
}

ResourceDeleteHandler contains new objects

func (ResourceDeleteHandler) GetConfig added in v1.0.116

func (r ResourceDeleteHandler) GetConfig() (util.Config, string)

GetConfig gets configurations containing SHA, annotations, namespace and resource name

func (ResourceDeleteHandler) Handle added in v1.0.116

func (r ResourceDeleteHandler) Handle() error

Handle processes resources being deleted

type ResourceHandler

type ResourceHandler interface {
	Handle() error
	GetConfig() (util.Config, string)
}

ResourceHandler handles the creation and update of resources

type ResourceUpdatedHandler

type ResourceUpdatedHandler struct {
	Resource    interface{}
	OldResource interface{}
	Collectors  metrics.Collectors
	Recorder    record.EventRecorder
}

ResourceUpdatedHandler contains updated objects

func (ResourceUpdatedHandler) GetConfig added in v0.0.22

func (r ResourceUpdatedHandler) GetConfig() (util.Config, string)

GetConfig gets configurations containing SHA, annotations, namespace and resource name

func (ResourceUpdatedHandler) Handle

func (r ResourceUpdatedHandler) Handle() error

Handle processes the updated resource

Jump to

Keyboard shortcuts

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