controllers

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Overview

Package controllers implements experimental addon controllers.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrSecretTypeNotSupported signals that a Secret is not supported.
	ErrSecretTypeNotSupported = errors.New("unsupported secret type")
)

Functions

This section is empty.

Types

type ClusterResourceSetBindingReconciler

type ClusterResourceSetBindingReconciler struct {
	Client client.Client

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
}

ClusterResourceSetBindingReconciler reconciles a ClusterResourceSetBinding object.

func (*ClusterResourceSetBindingReconciler) Reconcile

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

func (*ClusterResourceSetBindingReconciler) SetupWithManager

func (r *ClusterResourceSetBindingReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type ClusterResourceSetReconciler

type ClusterResourceSetReconciler struct {
	Client  client.Client
	Tracker *remote.ClusterCacheTracker

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
}

ClusterResourceSetReconciler reconciles a ClusterResourceSet object.

func (*ClusterResourceSetReconciler) ApplyClusterResourceSet

func (r *ClusterResourceSetReconciler) ApplyClusterResourceSet(ctx context.Context, cluster *clusterv1.Cluster, clusterResourceSet *addonsv1.ClusterResourceSet) error

ApplyClusterResourceSet applies resources in a ClusterResourceSet to a Cluster. Once applied, a record will be added to the cluster's ClusterResourceSetBinding. In ApplyOnce strategy, resources are applied only once to a particular cluster. ClusterResourceSetBinding is used to check if a resource is applied before. It applies resources best effort and continue on scenarios like: unsupported resource types, failure during creation, missing resources. TODO: If a resource already exists in the cluster but not applied by ClusterResourceSet, the resource will be updated ?

func (*ClusterResourceSetReconciler) Reconcile

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

func (*ClusterResourceSetReconciler) SetupWithManager

func (r *ClusterResourceSetReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

Directories

Path Synopsis
Package predicates implements predicate functionality.
Package predicates implements predicate functionality.

Jump to

Keyboard shortcuts

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