Documentation
¶
Index ¶
- type BundleDeploymentVariableSource
- type BundleProvider
- type BundlesAndDepsVariableSource
- type CRDUniquenessConstraintsVariableSource
- type InstalledPackageVariableSource
- type NestedVariableSource
- type OperatorVariableSource
- type RequiredPackageVariableSource
- type RequiredPackageVariableSourceOption
- type SliceVariableSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleDeploymentVariableSource ¶ added in v0.4.0
type BundleDeploymentVariableSource struct {
// contains filtered or unexported fields
}
func NewBundleDeploymentVariableSource ¶ added in v0.4.0
func NewBundleDeploymentVariableSource(cl client.Client, catalogClient BundleProvider, inputVariableSource input.VariableSource) *BundleDeploymentVariableSource
func (*BundleDeploymentVariableSource) GetVariables ¶ added in v0.4.0
type BundleProvider ¶ added in v0.6.0
type BundleProvider interface {
Bundles(ctx context.Context) ([]*catalogmetadata.Bundle, error)
}
BundleProvider provides the Bundles method through which we can retrieve a list of Bundles from any source, generally from a catalog client of some kind.
type BundlesAndDepsVariableSource ¶
type BundlesAndDepsVariableSource struct {
// contains filtered or unexported fields
}
func NewBundlesAndDepsVariableSource ¶
func NewBundlesAndDepsVariableSource(catalogClient BundleProvider, inputVariableSources ...input.VariableSource) *BundlesAndDepsVariableSource
func (*BundlesAndDepsVariableSource) GetVariables ¶
type CRDUniquenessConstraintsVariableSource ¶
type CRDUniquenessConstraintsVariableSource struct {
// contains filtered or unexported fields
}
CRDUniquenessConstraintsVariableSource produces variables that constraint the solution to 1. at most 1 bundle per package 2. at most 1 bundle per gvk (provided by the bundle) these variables guarantee that no two operators provide the same gvk and no two version of the same operator are running at the same time. This variable source does not itself reach out to catalog metadata. It produces its variables by searching for BundleVariables that are produced by its 'inputVariableSource' and working out which bundles correspond to which package and which gvks are provided by which bundle
func NewCRDUniquenessConstraintsVariableSource ¶
func NewCRDUniquenessConstraintsVariableSource(inputVariableSource input.VariableSource) *CRDUniquenessConstraintsVariableSource
NewCRDUniquenessConstraintsVariableSource creates a new instance of the CRDUniquenessConstraintsVariableSource. its purpose if to provide variables with constraints that restrict the solutions to bundle sets where no two bundles come from the same package and not two bundles provide the same gvk
func (*CRDUniquenessConstraintsVariableSource) GetVariables ¶
type InstalledPackageVariableSource ¶ added in v0.4.0
type InstalledPackageVariableSource struct {
// contains filtered or unexported fields
}
func NewInstalledPackageVariableSource ¶ added in v0.4.0
func NewInstalledPackageVariableSource(catalogClient BundleProvider, bundleImage string) (*InstalledPackageVariableSource, error)
func (*InstalledPackageVariableSource) GetVariables ¶ added in v0.4.0
type NestedVariableSource ¶
type NestedVariableSource []func(inputVariableSource input.VariableSource) (input.VariableSource, error)
func (NestedVariableSource) GetVariables ¶
type OperatorVariableSource ¶
type OperatorVariableSource struct {
// contains filtered or unexported fields
}
func NewOperatorVariableSource ¶
func NewOperatorVariableSource(cl client.Client, catalogClient BundleProvider, inputVariableSource input.VariableSource) *OperatorVariableSource
func (*OperatorVariableSource) GetVariables ¶
type RequiredPackageVariableSource ¶
type RequiredPackageVariableSource struct {
// contains filtered or unexported fields
}
func NewRequiredPackageVariableSource ¶
func NewRequiredPackageVariableSource(catalogClient BundleProvider, packageName string, options ...RequiredPackageVariableSourceOption) (*RequiredPackageVariableSource, error)
func (*RequiredPackageVariableSource) GetVariables ¶
type RequiredPackageVariableSourceOption ¶
type RequiredPackageVariableSourceOption func(*RequiredPackageVariableSource) error
func InChannel ¶
func InChannel(channelName string) RequiredPackageVariableSourceOption
func InVersionRange ¶
func InVersionRange(versionRange string) RequiredPackageVariableSourceOption
type SliceVariableSource ¶
type SliceVariableSource []input.VariableSource