variablesources

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 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,
	clusterExtensions []ocv1alpha1.ClusterExtension,
	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, clusterExtensions []ocv1alpha1.ClusterExtension) ([]*olmvariables.RequiredPackageVariable, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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