Documentation ¶
Index ¶
- func GetArgoRolloutRollingUpgradeFuncs() callbacks.RollingUpgradeFuncs
- func GetDaemonSetRollingUpgradeFuncs() callbacks.RollingUpgradeFuncs
- func GetDeploymentConfigRollingUpgradeFuncs() callbacks.RollingUpgradeFuncs
- func GetDeploymentRollingUpgradeFuncs() callbacks.RollingUpgradeFuncs
- func GetStatefulSetRollingUpgradeFuncs() callbacks.RollingUpgradeFuncs
- func PerformRollingUpgrade(clients kube.Clients, config util.Config, ...) error
- type ResourceCreatedHandler
- type ResourceHandler
- type ResourceUpdatedHandler
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) 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 }
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 ¶
ResourceHandler handles the creation and update of resources
type ResourceUpdatedHandler ¶
type ResourceUpdatedHandler struct { Resource interface{} OldResource interface{} Collectors metrics.Collectors }
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