Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleUniquenessVariable ¶
type BundleUniquenessVariable struct {
*input.SimpleVariable
}
func NewBundleUniquenessVariable ¶
func NewBundleUniquenessVariable(id deppy.Identifier, atMostIDs ...deppy.Identifier) *BundleUniquenessVariable
NewBundleUniquenessVariable creates a new variable that instructs the resolver to choose at most a single bundle from the input 'atMostID'. Examples: 1. restrict the solution to at most a single bundle per package 2. restrict the solution to at most a single bundler per provided gvk this guarantees that no two operators provide the same gvk and no two version of the same operator are running at the same time
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 its entitySource. 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 ¶
func (g *CRDUniquenessConstraintsVariableSource) GetVariables(ctx context.Context, entitySource input.EntitySource) ([]deppy.Variable, error)