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 ¶
This section is empty.
Functions ¶
func ShouldRedeployAgent ¶
func ShouldRedeployAgent(bd *fleet.BundleDeployment) bool
func ShouldUpdateStatus ¶
func ShouldUpdateStatus(bd *fleet.BundleDeployment) bool
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func New ¶
func New(applied *applied.Applied, mapper meta.RESTMapper, deployer *helmdeployer.Helm, defaultNamespace string, labelSuffix string) *Monitor
func (*Monitor) UpdateStatus ¶
func (m *Monitor) UpdateStatus(ctx context.Context, bd *fleet.BundleDeployment, resources *helmdeployer.Resources) (fleet.BundleDeploymentStatus, error)
Click to show internal directories.
Click to hide internal directories.