controllers

package
v0.0.0-...-8019b93 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationReconciler

type ApplicationReconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	Log          logr.Logger
	GitHubClient *gh.Client
	GitHubOrg    string
}

ApplicationReconciler reconciles a Application object

func (*ApplicationReconciler) AddFinalizer

func (r *ApplicationReconciler) AddFinalizer(ctx context.Context, application *appstudiov1alpha1.Application) error

func (*ApplicationReconciler) Finalize

func (r *ApplicationReconciler) Finalize(application *appstudiov1alpha1.Application) error

Finalize deletes the corresponding GitOps repo for the given Application CR.

func (*ApplicationReconciler) Reconcile

func (r *ApplicationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. TODO(user): Modify the Reconcile function to compare the state specified by the Application object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*ApplicationReconciler) SetCreateConditionAndUpdateCR

func (r *ApplicationReconciler) SetCreateConditionAndUpdateCR(ctx context.Context, application *appstudiov1alpha1.Application, createError error)

func (*ApplicationReconciler) SetUpdateConditionAndUpdateCR

func (r *ApplicationReconciler) SetUpdateConditionAndUpdateCR(ctx context.Context, application *appstudiov1alpha1.Application, updateError error)

func (*ApplicationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ComponentDetectionQueryReconciler

type ComponentDetectionQueryReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
}

ComponentDetectionQueryReconciler reconciles a ComponentDetectionQuery object

func (*ComponentDetectionQueryReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ComponentDetectionQuery object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*ComponentDetectionQueryReconciler) SetCompleteConditionAndUpdateCR

func (r *ComponentDetectionQueryReconciler) SetCompleteConditionAndUpdateCR(ctx context.Context, componentDetectionQuery *appstudiov1alpha1.ComponentDetectionQuery, completeError error)

func (*ComponentDetectionQueryReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ComponentReconciler

type ComponentReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	Log             logr.Logger
	GitToken        string
	GitHubOrg       string
	ImageRepository string
	Executor        gitops.Executor
	AppFS           afero.Afero
}

ComponentReconciler reconciles a Component object

func (*ComponentReconciler) Reconcile

func (r *ComponentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. TODO(user): Modify the Reconcile function to compare the state specified by the Component object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*ComponentReconciler) SetCreateConditionAndUpdateCR

func (r *ComponentReconciler) SetCreateConditionAndUpdateCR(ctx context.Context, component *appstudiov1alpha1.Component, createError error)

func (*ComponentReconciler) SetUpdateConditionAndUpdateCR

func (r *ComponentReconciler) SetUpdateConditionAndUpdateCR(ctx context.Context, component *appstudiov1alpha1.Component, updateError error)

func (*ComponentReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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