controllers

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultUpgradeCheckInterval = time.Hour * 24
)

Variables

This section is empty.

Functions

func RegisterPackageBundleControllerReconciler

func RegisterPackageBundleControllerReconciler(mgr ctrl.Manager) error

func RegisterPackageBundleReconciler

func RegisterPackageBundleReconciler(mgr ctrl.Manager) error

func RegisterPackageReconciler

func RegisterPackageReconciler(mgr ctrl.Manager) (err error)

Types

type PackageBundleControllerReconciler

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

	Log logr.Logger
	// contains filtered or unexported fields
}

PackageBundleControllerReconciler reconciles a PackageBundleController object

func NewPackageBundleControllerReconciler

func NewPackageBundleControllerReconciler(client client.Client,
	scheme *runtime.Scheme, bundleManager bundle.Manager,
	log logr.Logger) *PackageBundleControllerReconciler

func (*PackageBundleControllerReconciler) 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. the PackageBundleController 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.8.3/pkg/reconcile

func (*PackageBundleControllerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PackageBundleReconciler

type PackageBundleReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

PackageBundleReconciler reconciles a PackageBundle object

func NewPackageBundleReconciler

func NewPackageBundleReconciler(client client.Client, scheme *runtime.Scheme,
	bundleClient bundle.Client, bundleManager bundle.Manager, registryClient bundle.RegistryClient, log logr.Logger) *PackageBundleReconciler

func (*PackageBundleReconciler) Reconcile

func (r *PackageBundleReconciler) 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. the PackageBundle 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.8.3/pkg/reconcile

type PackageReconciler

type PackageReconciler struct {
	client.Client
	Log           logr.Logger
	Scheme        *runtime.Scheme
	PackageDriver driver.PackageDriver
	Manager       packages.Manager
	// contains filtered or unexported fields
}

PackageReconciler reconciles a Package object

func NewPackageReconciler

func NewPackageReconciler(client client.Client, scheme *runtime.Scheme,
	driver driver.PackageDriver, manager packages.Manager,
	bundleManager bundle.Manager, bundleClient bundle.Client,
	packageClient packages.Client, log logr.Logger) *PackageReconciler

func (*PackageReconciler) Reconcile

func (r *PackageReconciler) 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.

func (*PackageReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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