Documentation ¶
Index ¶
- func MakeBundleUniquenessVariables(bundleVariables []*olmvariables.BundleVariable) []*olmvariables.BundleUniquenessVariable
- func MakeBundleVariables(allBundles []*catalogmetadata.Bundle, ...) ([]*olmvariables.BundleVariable, error)
- func MakeInstalledPackageVariables(allBundles []*catalogmetadata.Bundle, ...) ([]*olmvariables.InstalledPackageVariable, error)
- func MakeRequiredPackageVariables(allBundles []*catalogmetadata.Bundle, ...) ([]*olmvariables.RequiredPackageVariable, error)
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.
Click to show internal directories.
Click to hide internal directories.