crd

package
v0.0.0-...-c54dba7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(mgr manager.Manager, localClient client.Client, logger logging.Logger) error

Setup adds a controller that watches CustomResourceDefinitions in the remote cluster and replicates them in the local cluster.

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler syncs CRDs in the remote cluster to the local cluster, overrides the existing ones in the local cluster. It's advised to use this together with an EventFilter to filter only the CRDs you'd like to be synced.

func NewReconciler

func NewReconciler(mgr manager.Manager, localClientApplicator runtimeresource.ClientApplicator, logger logging.Logger) *Reconciler

NewReconciler returns a new *Reconciler.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req reconcile.Request) (reconcile.Result, error)

Reconcile fetches the CRD from remote cluster and applies it in the local cluster.

Jump to

Keyboard shortcuts

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