Documentation ¶
Index ¶
- func FetchGitRepositoryFromProjectInventory(project *projectv1.Project) (string, string, error)
- func FetchValuesFileContent(ctx context.Context, productName string, artifact *v1.Artifact) (_ []byte, err error)
- func GetProjectFromObjectNamespace(ctx context.Context, c client.Client, obj client.Object, ...) (*v1alpha1.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 TargetReconciler
- type ValidationReconciler
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.
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 GetProjectFromObjectNamespace ¶ added in v0.5.0
func GetProjectFromObjectNamespace(ctx context.Context, c client.Client, obj client.Object, defaultNamespace string) (*v1alpha1.Project, error)
GetProjectFromObjectNamespace returns the Project from the annotation of the current namespace that an object is in.
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 EventRecorder record.EventRecorder }
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 OCMClient mpasocm.Contract MpasSystemNamespace string EventRecorder record.EventRecorder }
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 EventRecorder record.EventRecorder }
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 ¶
type ProductDeploymentReconciler struct { client.Client Scheme *runtime.Scheme EventRecorder record.EventRecorder MpasSystemNamespace string }
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 TargetReconciler ¶ added in v0.6.0
type TargetReconciler struct { client.Client Scheme *runtime.Scheme kuberecorder.EventRecorder ControllerName string // contains filtered or unexported fields }
TargetReconciler reconciles a Target object.
func (*TargetReconciler) Reconcile ¶ added in v0.6.0
func (r *TargetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, retErr 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 (*TargetReconciler) SetupWithManager ¶ added in v0.6.0
SetupWithManager sets up the controller with the Manager.
type ValidationReconciler ¶ added in v0.2.0
type ValidationReconciler struct { client.Client Scheme *runtime.Scheme EventRecorder record.EventRecorder 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.
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
- target_controller.go
- validation_controller.go