controllers

package
v0.2.1-test Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 63 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchGitRepositoryFromProjectInventory added in v0.2.0

func FetchGitRepositoryFromProjectInventory(project *projectv1.Project) (string, string, error)

FetchGitRepositoryFromProjectInventory looks for the GitRepository in the project's inventory. There should ever only be one.

func FetchValuesFileContent added in v0.2.0

func FetchValuesFileContent(ctx context.Context, productName string, artifact *v1.Artifact) (_ []byte, err error)

FetchValuesFileContent takes a product name and a GitRepository artifact to fetch a values file if it exists.

func GetProjectInNamespace added in v0.2.0

func GetProjectInNamespace(ctx context.Context, c client.Client, namespace string) (*projectv1.Project, error)

GetProjectInNamespace returns the Project in the current namespace.

Types

type ComponentSubscriptionVersionChangedPredicate added in v0.2.0

type ComponentSubscriptionVersionChangedPredicate struct {
	predicate.Funcs
}

ComponentSubscriptionVersionChangedPredicate watches a subscription for reconciled version changes.

func (ComponentSubscriptionVersionChangedPredicate) Update added in v0.2.0

Update will check the new subscription has a new LastAppliedVersion. If yes, it will trigger a reconcile event.

type ProductDeploymentGeneratorReconciler

type ProductDeploymentGeneratorReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	OCMClient           mpasocm.Contract
	SnapshotWriter      snapshot.Writer
	MpasSystemNamespace string
}

ProductDeploymentGeneratorReconciler reconciles a ProductDeploymentGenerator object

func (*ProductDeploymentGeneratorReconciler) Reconcile

func (r *ProductDeploymentGeneratorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ProductDeploymentGeneratorReconciler) SetupWithManager

func (r *ProductDeploymentGeneratorReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ProductDeploymentPipelineReconciler

type ProductDeploymentPipelineReconciler struct {
	client.Client
	Scheme              *runtime.Scheme
	MpasSystemNamespace string
}

ProductDeploymentPipelineReconciler reconciles a ProductDeploymentPipeline object.

func (*ProductDeploymentPipelineReconciler) Reconcile

func (r *ProductDeploymentPipelineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ProductDeploymentPipelineReconciler) SetupWithManager

func (r *ProductDeploymentPipelineReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ProductDeploymentPipelineScheduler

type ProductDeploymentPipelineScheduler struct {
	client.Client
	Scheme              *runtime.Scheme
	MpasSystemNamespace string

	Deployer deployers.Deployer
}

ProductDeploymentPipelineScheduler reconciles a ProductDeploymentPipeline object and schedules them.

func (*ProductDeploymentPipelineScheduler) Reconcile

func (r *ProductDeploymentPipelineScheduler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ProductDeploymentPipelineScheduler) SelectTarget

SelectTarget selects a target based on the provided filtering options.

func (*ProductDeploymentPipelineScheduler) SetupWithManager

func (r *ProductDeploymentPipelineScheduler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ProductDeploymentReconciler

type ProductDeploymentReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ProductDeploymentReconciler reconciles a ProductDeployment object

func (*ProductDeploymentReconciler) Reconcile

func (r *ProductDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. Named return values: It's used for improving readability when dealing with the defer patch statement.

func (*ProductDeploymentReconciler) SetupWithManager

func (r *ProductDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ValidationReconciler added in v0.2.0

type ValidationReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	MpasSystemNamespace string
	Validator           validators.Validator
}

ValidationReconciler reconciles a Validation object

func (*ValidationReconciler) Reconcile added in v0.2.0

func (r *ValidationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ValidationReconciler) SetupWithManager added in v0.2.0

func (r *ValidationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type Visitor added in v0.2.0

type Visitor struct {
	// contains filtered or unexported fields
}

func (*Visitor) Visit added in v0.2.0

func (v *Visitor) Visit(node goyamlast.Node) goyamlast.Visitor

Visit parses a node in the yaml structure. If it finds a node that has a comment and contains the marker, it will fetch the yaml path pointing to that value in the replacement values.yaml file and update it.

Jump to

Keyboard shortcuts

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