Documentation
¶
Overview ¶
Package clusterresourceset implements the ClusterResourceSet controller.
Index ¶
- Variables
- type Reconciler
- func (r *Reconciler) ApplyClusterResourceSet(ctx context.Context, cluster *clusterv1.Cluster, ...) (rerr error)
- func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
- func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options, ...) error
Constants ¶
This section is empty.
Variables ¶
var ErrSecretTypeNotSupported = errors.New("unsupported secret type")
ErrSecretTypeNotSupported signals that a Secret is not supported.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct { Client client.Client ClusterCache clustercache.ClusterCache // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string }
Reconciler reconciles a ClusterResourceSet object.
func (*Reconciler) ApplyClusterResourceSet ¶
func (r *Reconciler) ApplyClusterResourceSet(ctx context.Context, cluster *clusterv1.Cluster, clusterResourceSet *addonsv1.ClusterResourceSet) (rerr 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. In Reconcile strategy, resources are re-applied to a particular cluster when their definition changes. The hash in ClusterResourceSetBinding is used to check if a resource has changed or not. TODO: If a resource already exists in the cluster but not applied by ClusterResourceSet, the resource will be updated ?
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options, partialSecretCache cache.Cache) error
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package predicates implements predicate functionality.
|
Package predicates implements predicate functionality. |