realizer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthyConditionEvaluator added in v0.4.0

type HealthyConditionEvaluator func(rule *v1alpha1.HealthRule, realizedResource *v1alpha1.RealizedResource, stampedObject *unstructured.Unstructured) metav1.Condition

type Outputs

type Outputs map[string]*templates.Output

func NewOutputs

func NewOutputs() Outputs

func (Outputs) AddOutput

func (o Outputs) AddOutput(name string, output *templates.Output)

func (Outputs) GenerateInputs

func (o Outputs) GenerateInputs(resource OwnerResource) *templates.Inputs

type OwnerResource added in v0.4.0

type OwnerResource struct {
	TemplateRef     v1alpha1.TemplateReference
	TemplateOptions []v1alpha1.TemplateOption
	Params          []v1alpha1.BlueprintParam
	Name            string
	Sources         []v1alpha1.ResourceReference
	Images          []v1alpha1.ResourceReference
	Configs         []v1alpha1.ResourceReference
	Deployment      *v1alpha1.DeploymentReference
}

func MakeDeliveryOwnerResources added in v0.4.0

func MakeDeliveryOwnerResources(delivery *v1alpha1.ClusterDelivery) []OwnerResource

func MakeSupplychainOwnerResources added in v0.4.0

func MakeSupplychainOwnerResources(supplyChain *v1alpha1.ClusterSupplyChain) []OwnerResource

type Realizer

type Realizer interface {
	Realize(ctx context.Context, resourceRealizer ResourceRealizer, blueprintName string, ownerResources []OwnerResource, resourceStatuses statuses.ResourceStatuses) error
}

func NewRealizer

func NewRealizer(healthyConditionEvaluator HealthyConditionEvaluator) Realizer

type ResourceLabeler added in v0.4.0

type ResourceLabeler func(resource OwnerResource) templates.Labels

type ResourceRealizer added in v0.4.0

type ResourceRealizer interface {
	Do(ctx context.Context, resource OwnerResource, blueprintName string, outputs Outputs) (templates.Template, *unstructured.Unstructured, *templates.Output, error)
}

type ResourceRealizerBuilder added in v0.4.0

type ResourceRealizerBuilder func(authToken string, owner client.Object, ownerParams []v1alpha1.OwnerParam, systemRepo repository.Repository, blueprintParams []v1alpha1.BlueprintParam, resourceLabeler ResourceLabeler) (ResourceRealizer, error)

func NewResourceRealizerBuilder added in v0.4.0

func NewResourceRealizerBuilder(repositoryBuilder repository.RepositoryBuilder, clientBuilder realizerclient.ClientBuilder, cache repository.RepoCache) ResourceRealizerBuilder

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
gc
runnablefakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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