handler

package
v0.0.129 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 20 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 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 PerformRollingUpgrade

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

PerformRollingUpgrade upgrades 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 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