Documentation ¶
Index ¶
- func FetchGitRepositoryFromProjectInventory(project *projectv1.Project) (string, string, error)
- func FetchValuesFileContent(ctx context.Context, productName string, artifact *v1.Artifact) (_ []byte, err error)
- func GetProjectInNamespace(ctx context.Context, c client.Client, namespace string) (*projectv1.Project, error)
- type ComponentSubscriptionVersionChangedPredicate
- type ProductDeploymentGeneratorReconciler
- type ProductDeploymentPipelineReconciler
- type ProductDeploymentPipelineScheduler
- func (r *ProductDeploymentPipelineScheduler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
- func (r *ProductDeploymentPipelineScheduler) SelectTarget(ctx context.Context, role v1alpha1.TargetRole, namespace string) (v1alpha1.Target, error)
- func (r *ProductDeploymentPipelineScheduler) SetupWithManager(mgr ctrl.Manager) error
- type ProductDeploymentReconciler
- type ValidationReconciler
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchGitRepositoryFromProjectInventory ¶ added in v0.2.0
FetchGitRepositoryFromProjectInventory looks for the GitRepository in the project's inventory. There should ever only be one.
Types ¶
type ComponentSubscriptionVersionChangedPredicate ¶ added in v0.2.0
ComponentSubscriptionVersionChangedPredicate watches a subscription for reconciled version changes.
func (ComponentSubscriptionVersionChangedPredicate) Update ¶ added in v0.2.0
func (ComponentSubscriptionVersionChangedPredicate) Update(e event.UpdateEvent) bool
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 ¶
func (r *ProductDeploymentPipelineScheduler) SelectTarget(ctx context.Context, role v1alpha1.TargetRole, namespace string) (v1alpha1.Target, error)
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 ¶
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
}
Source Files ¶
- component_subscription_version_predicate.go
- fetch_git_repository_from_project.go
- fetch_values_file_content.go
- get_project_in_namespace.go
- productdeployment_controller.go
- productdeploymentgenerator_controller.go
- productdeploymentpipeline_controller.go
- productdeploymentpipeline_scheduler.go
- select_target.go
- validation_controller.go