image

package
v0.0.14-classic Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: AGPL-3.0-or-later Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	None = "none"
	Now  = "now"
)
View Source
const (
	DefaultFrequency = 60
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageUpdater

type ImageUpdater struct {
	client.Client
	Log              logr.Logger
	Frequency        int
	RunningInstances map[string][]client.Object
	Scheduler        *gocron.Scheduler
}

func NewImageUpdater

func NewImageUpdater(k8sClient client.Client, freq int) ImageUpdater

func (*ImageUpdater) ImageCheckerForInstanceRunning

func (iu *ImageUpdater) ImageCheckerForInstanceRunning(instance v1alpha1.OpenNMS) bool

ImageCheckerForInstanceRunning - check if an image check is running for the given instance

func (*ImageUpdater) InitScheduler

func (iu *ImageUpdater) InitScheduler()

func (*ImageUpdater) ServiceMarkedForImageCheck

func (iu *ImageUpdater) ServiceMarkedForImageCheck(service client.Object) bool

ServiceMarkedForImageCheck - check if a given service is marked for auto updating

func (*ImageUpdater) StartImageCheckerForInstance

func (iu *ImageUpdater) StartImageCheckerForInstance(instance v1alpha1.OpenNMS, services []client.Object)

StartImageCheckerForInstance - start the recurrent image check for the given instance and services

func (*ImageUpdater) StopImageCheckerForInstance

func (iu *ImageUpdater) StopImageCheckerForInstance(instance v1alpha1.OpenNMS)

StopImageCheckerForInstance - stop the recurrent image check for the given instance and services

func (*ImageUpdater) UpdateServices

func (iu *ImageUpdater) UpdateServices(instance v1alpha1.OpenNMS)

UpdateServices - update the services in a given instance

Jump to

Keyboard shortcuts

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