upgradecheck

package
v5.1.2-bit Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpgradesScheduler

func CheckForUpgradesScheduler(ctx context.Context,
	versionString, url string, crclient crclient.Client,
	cfg *rest.Config, isOpenShift bool,
	cacheClient CacheWithWait,
)

CheckForUpgradesScheduler invokes the check func when the operator starts and then on the given period schedule. It stops when the context is cancelled.

Types

type CacheWithWait

type CacheWithWait interface {
	WaitForCacheSync(ctx context.Context) bool
}

Creating an interface for cache with WaitForCacheSync to allow easier mocking

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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