monitor

package
v0.11.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package monitor provides functionality for monitoring and updating the status of a bundle deployment. It includes functions for determining whether the agent should be redeployed, whether the status should be updated, and for updating the status based on the resources and helm release history.

Index

Constants

This section is empty.

Variables

Functions

func ShouldRedeployAgent

func ShouldRedeployAgent(bd *fleet.BundleDeployment) bool

func ShouldUpdateStatus

func ShouldUpdateStatus(bd *fleet.BundleDeployment) bool

Types

type Cond added in v0.11.0

type Cond string

func (Cond) False added in v0.11.0

func (c Cond) False(obj interface{})

func (Cond) GetMessage added in v0.11.0

func (c Cond) GetMessage(obj interface{}) string

func (Cond) GetReason added in v0.11.0

func (c Cond) GetReason(obj interface{}) string

func (Cond) IsFalse added in v0.11.0

func (c Cond) IsFalse(obj interface{}) bool

func (Cond) IsTrue added in v0.11.0

func (c Cond) IsTrue(obj interface{}) bool

func (Cond) Message added in v0.11.0

func (c Cond) Message(obj interface{}, message string)

func (Cond) Reason added in v0.11.0

func (c Cond) Reason(obj interface{}, reason string)

func (Cond) SetError added in v0.11.0

func (c Cond) SetError(obj interface{}, reason string, err error)

func (Cond) True added in v0.11.0

func (c Cond) True(obj interface{})

type Monitor

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

func New

func New(client client.Client, ds *desiredset.Client, deployer *helmdeployer.Helm, defaultNamespace string, labelSuffix string) *Monitor

func (*Monitor) UpdateStatus

Jump to

Keyboard shortcuts

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