cluster-api: sigs.k8s.io/cluster-api/exp/addons/controllers Index | Files

package controllers

import "sigs.k8s.io/cluster-api/exp/addons/controllers"

Index

Package Files

clusterresourceset_controller.go clusterresourceset_helpers.go clusterresourcesetbinding_controller.go

Variables

var (
    ErrSecretTypeNotSupported = errors.New("unsupported secret type")
)

type ClusterResourceSetBindingReconciler Uses

type ClusterResourceSetBindingReconciler struct {
    Client client.Client
}

ClusterResourceSetBindingReconciler reconciles a ClusterResourceSetBinding object

func (*ClusterResourceSetBindingReconciler) Reconcile Uses

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

func (*ClusterResourceSetBindingReconciler) SetupWithManager Uses

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

type ClusterResourceSetReconciler Uses

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

ClusterResourceSetReconciler reconciles a ClusterResourceSet object

func (*ClusterResourceSetReconciler) ApplyClusterResourceSet Uses

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 Uses

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

func (*ClusterResourceSetReconciler) SetupWithManager Uses

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

Package controllers imports 37 packages (graph) and is imported by 2 packages. Updated 2020-10-29. Refresh now. Tools for package owners.