helm_resources_manager

package
v1.17.6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 17 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelmResourcesManager

type HelmResourcesManager interface {
	WithDefaultNamespace(namespace string)
	Stop()
	StopMonitors()
	PauseMonitors()
	ResumeMonitors()
	StartMonitor(moduleName string, manifests []manifest.Manifest, defaultNamespace string, LastReleaseStatus func(releaseName string) (revision string, status string, err error))
	HasMonitor(moduleName string) bool
	StopMonitor(moduleName string)
	PauseMonitor(moduleName string)
	ResumeMonitor(moduleName string)
	AbsentResources(moduleName string) ([]manifest.Manifest, error)
	GetMonitor(moduleName string) *ResourcesMonitor
	GetAbsentResources(templates []manifest.Manifest, defaultNamespace string) ([]manifest.Manifest, error)
	Ch() chan ReleaseStatusEvent
	KubeClient() *klient.Client
}

func NewHelmResourcesManager

func NewHelmResourcesManager(ctx context.Context, kclient *klient.Client, logger *log.Logger) (HelmResourcesManager, error)

type ResourceMonitorConfig added in v1.5.1

type ResourceMonitorConfig struct {
	ModuleName       string
	Manifests        []manifest.Manifest
	DefaultNamespace string

	KubeClient *klient.Client
	Cache      cr_cache.Cache

	AbsentCb func(moduleName string, unexpectedStatus bool, absent []manifest.Manifest, defaultNs string)

	HelmStatusGetter func(releaseName string) (revision string, status string, err error)

	Logger *log.Logger
}

type ResourcesMonitor

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

func NewResourcesMonitor

func NewResourcesMonitor(ctx context.Context, cfg *ResourceMonitorConfig) *ResourcesMonitor

func (*ResourcesMonitor) AbsentResources

func (r *ResourcesMonitor) AbsentResources() ([]manifest.Manifest, error)

func (*ResourcesMonitor) GetHelmReleaseStatus added in v1.4.3

func (r *ResourcesMonitor) GetHelmReleaseStatus(moduleName string) (string, error)

GetHelmReleaseStatus returns last release status

func (*ResourcesMonitor) Pause

func (r *ResourcesMonitor) Pause()

Pause prevent execution of absent callback

func (*ResourcesMonitor) ResourceIds

func (r *ResourcesMonitor) ResourceIds() []string

func (*ResourcesMonitor) Resume

func (r *ResourcesMonitor) Resume()

Resume allows execution of absent callback

func (*ResourcesMonitor) Start

func (r *ResourcesMonitor) Start()

Start creates a timer and check if all deployed manifests are present in the cluster.

func (*ResourcesMonitor) Stop

func (r *ResourcesMonitor) Stop()

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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