Documentation
¶
Index ¶
- Constants
- type ImageUpdater
- func (iu *ImageUpdater) ImageCheckerForInstanceRunning(instance v1alpha1.OpenNMS) bool
- func (iu *ImageUpdater) InitScheduler()
- func (iu *ImageUpdater) ServiceMarkedForImageCheck(service client.Object) bool
- func (iu *ImageUpdater) StartImageCheckerForInstance(instance v1alpha1.OpenNMS, services []client.Object)
- func (iu *ImageUpdater) StopImageCheckerForInstance(instance v1alpha1.OpenNMS)
- func (iu *ImageUpdater) UpdateServices(instance v1alpha1.OpenNMS)
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
Click to show internal directories.
Click to hide internal directories.