resource

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RemoteControllerNamespace = v1alpha1.KubernetesApplicationGroupVersionKind.GroupKind().String() + "/namespace"
	RemoteControllerName      = v1alpha1.KubernetesApplicationGroupVersionKind.GroupKind().String() + "/name"
	RemoteControllerUID       = v1alpha1.KubernetesApplicationGroupVersionKind.GroupKind().String() + "/uid"
)

Ownership annotations

Functions

func CreatePredicate

func CreatePredicate(event event.CreateEvent) bool

CreatePredicate accepts KubernetesApplicationResources that have been scheduled to a KubernetesCluster.

func UpdatePredicate

func UpdatePredicate(event event.UpdateEvent) bool

UpdatePredicate accepts KubernetesApplicationResources that have been scheduled to a KubernetesCluster.

Types

type Controller

type Controller struct{}

Controller is responsible for adding the Instance controller and its corresponding reconciler to the manager with any runtime configuration.

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager creates a new Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

type Reconciler

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

Reconciler reconciles a Instance object

func (*Reconciler) Reconcile

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

Reconcile scheduled Kubernetes application resources by propagating them to their scheduled Kubernetes cluster.

Jump to

Keyboard shortcuts

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