upgrading

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarkUpgradingFalseWithUpgradeCompleted

func MarkUpgradingFalseWithUpgradeCompleted(object conditions.Object)

MarkUpgradingFalseWithUpgradeCompleted sets Upgrading condition with status False, reason UpgradeCompleted, severity Info and a message informing how long the upgrade took.

func MarkUpgradingFalseWithUpgradeNotStarted

func MarkUpgradingFalseWithUpgradeNotStarted(object conditions.Object)

MarkUpgradingFalseWithUpgradeNotStarted sets Upgrading condition with status False, reason ExistingObject, severity Info and a message informing that the upgrade has not been started.

func MarkUpgradingTrue

func MarkUpgradingTrue(object conditions.Object)

MarkUpgradingTrue sets Upgrading condition with status True.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(config HandlerConfig) (*Handler, error)

func (*Handler) EnsureCreated

func (h *Handler) EnsureCreated(ctx context.Context, object interface{}) error

func (*Handler) EnsureDeleted

func (h *Handler) EnsureDeleted(_ context.Context, _ interface{}) error

func (*Handler) Name

func (h *Handler) Name() string

type HandlerConfig

type HandlerConfig struct {
	CtrlClient ctrl.Client
	Logger     micrologger.Logger

	Name         string
	UpdateStatus bool
}

Jump to

Keyboard shortcuts

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