reconcilechecks

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FabricVersion

func FabricVersion(instance Instance, update Update, image Image, fv Version) (bool, error)

FabricVersion is a lower-level call that requires all dependencies to be injected to handle events on fabric version and images in specs. It returns back two values, the first return value indicates if a spec change has been made. The second return value returns an error.

func FabricVersionHelper

func FabricVersionHelper(instance Instance, versions *deployer.Versions, update Update) (bool, error)

FabricVersionHelper is a helper function meant to be consumed by the different controllers to handle events on fabric version and images in specs

Types

type Image

type Image interface {
	UpdateRequired(images.Update) bool
	SetDefaults(images.Instance) error
}

Image defines the contract with the image checks

type Instance

type Instance interface {
	GetArch() []string
	GetRegistryURL() string
	GetFabricVersion() string
	SetFabricVersion(string)
	ImagesSet() bool
}

Instance is an instance of an IBP custom resource

type Update

type Update interface {
	ImagesUpdated() bool
	FabricVersionUpdated() bool
}

Update defines update events we are interested in

type Version

type Version interface {
	Normalize(images.FabricVersionInstance) string
	Validate(images.FabricVersionInstance) error
}

Version defines the contract with the version checks

Directories

Path Synopsis
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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