adoption

package
v0.2.1-0...-90e585d Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericAdoption

type GenericAdoption struct {
	coordinationv1alpha1.Adoption
}

func (*GenericAdoption) ClientObject

func (a *GenericAdoption) ClientObject() client.Object

func (*GenericAdoption) GetConditions

func (a *GenericAdoption) GetConditions() *[]metav1.Condition

func (*GenericAdoption) GetRoundRobinStatus

func (*GenericAdoption) GetRoundRobinStrategy

func (*GenericAdoption) GetStaticStrategy

func (*GenericAdoption) GetStrategyType

func (a *GenericAdoption) GetStrategyType() genericStrategyType

func (*GenericAdoption) GetTargetAPI

func (*GenericAdoption) SetRoundRobinStatus

func (a *GenericAdoption) SetRoundRobinStatus(
	rr *coordinationv1alpha1.AdoptionRoundRobinStatus)

func (*GenericAdoption) UpdatePhase

func (a *GenericAdoption) UpdatePhase()

type GenericAdoptionController

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

Generic reconciler for both Adoption and ClusterAdoption objects. An adoption controller ensures selected objects always have a specific label set.

func NewAdoptionController

func NewAdoptionController(
	c client.Client, log logr.Logger,
	scheme *runtime.Scheme, dynamicClient dynamic.Interface,
	discoveryClient *discovery.DiscoveryClient,
) *GenericAdoptionController

func NewClusterAdoptionController

func NewClusterAdoptionController(
	c client.Client, log logr.Logger,
	scheme *runtime.Scheme, dynamicClient dynamic.Interface,
	discoveryClient *discovery.DiscoveryClient,
) *GenericAdoptionController

func (*GenericAdoptionController) Reconcile

func (c *GenericAdoptionController) Reconcile(
	ctx context.Context, req ctrl.Request,
) (ctrl.Result, error)

func (*GenericAdoptionController) SetupWithManager

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

type GenericClusterAdoption

type GenericClusterAdoption struct {
	coordinationv1alpha1.ClusterAdoption
}

func (*GenericClusterAdoption) ClientObject

func (a *GenericClusterAdoption) ClientObject() client.Object

func (*GenericClusterAdoption) GetConditions

func (a *GenericClusterAdoption) GetConditions() *[]metav1.Condition

func (*GenericClusterAdoption) GetRoundRobinStatus

func (*GenericClusterAdoption) GetRoundRobinStrategy

func (*GenericClusterAdoption) GetStaticStrategy

func (*GenericClusterAdoption) GetStrategyType

func (a *GenericClusterAdoption) GetStrategyType() genericStrategyType

func (*GenericClusterAdoption) GetTargetAPI

func (*GenericClusterAdoption) SetRoundRobinStatus

func (*GenericClusterAdoption) UpdatePhase

func (a *GenericClusterAdoption) UpdatePhase()

type RoundRobinAdoptionReconciler

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

func (*RoundRobinAdoptionReconciler) Reconcile

func (r *RoundRobinAdoptionReconciler) Reconcile(
	ctx context.Context, adoption genericAdoption) (ctrl.Result, error)

type StaticAdoptionReconciler

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

func (*StaticAdoptionReconciler) Reconcile

func (r *StaticAdoptionReconciler) Reconcile(
	ctx context.Context, adoption genericAdoption) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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