Help us shape the future of Go! Take the 2026 Go Developer Survey

variablesources

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBundleUniquenessVariables added in v0.8.0

func MakeBundleUniquenessVariables(bundleVariables []*olmvariables.BundleVariable) []*olmvariables.BundleUniquenessVariable

MakeBundleUniquenessVariables produces variables that constrain the solution to at most 1 bundle per package. These variables guarantee that no two versions of the same package are running at the same time.

func MakeBundleVariables added in v0.8.0

func MakeBundleVariables(
	allBundles []*catalogmetadata.Bundle,
	requiredPackages []*olmvariables.RequiredPackageVariable,
	installedPackages []*olmvariables.InstalledPackageVariable,
) ([]*olmvariables.BundleVariable, error)

func MakeInstalledPackageVariables added in v0.8.0

func MakeInstalledPackageVariables(
	allBundles []*catalogmetadata.Bundle,
	operators []operatorsv1alpha1.Operator,
	bundleDeployments []rukpakv1alpha1.BundleDeployment,
) ([]*olmvariables.InstalledPackageVariable, error)

MakeInstalledPackageVariables returns variables representing packages already installed in the system. Meaning that each BundleDeployment managed by operator-controller has own variable.

func MakeRequiredPackageVariables added in v0.8.0

func MakeRequiredPackageVariables(allBundles []*catalogmetadata.Bundle, operators []operatorsv1alpha1.Operator) ([]*olmvariables.RequiredPackageVariable, error)

MakeRequiredPackageVariables returns a variable which represent explicit requirement for a package from an user. This is when an user explicitly asks "install this" via Operator API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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