capi

package
v1.6.10 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: UPL-1.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CAPIClusterClientObject

func CAPIClusterClientObject() client.Object

func SetClusterRegistrationFunction

func SetClusterRegistrationFunction(f ClusterRegistrationFnType)

func SetClusterUnregistrationFunction

func SetClusterUnregistrationFunction(f ClusterUnregistrationFnType)

func SetDefaultClusterRegistrationFunction

func SetDefaultClusterRegistrationFunction()

func SetDefaultClusterUnregistrationFunction

func SetDefaultClusterUnregistrationFunction()

func UnregisterRancherCluster

func UnregisterRancherCluster(ctx context.Context, r *CAPIClusterReconciler, cluster *unstructured.Unstructured) error

UnregisterRancherCluster performs the operations required to de-register the cluster from Rancher

Types

type CAPIClusterReconciler

type CAPIClusterReconciler struct {
	client.Client
	Scheme             *runtime.Scheme
	Log                *zap.SugaredLogger
	RancherIngressHost string
}

func (*CAPIClusterReconciler) GetRancherAPIResources

GetRancherAPIResources returns the set of resources required for interacting with Rancher

func (*CAPIClusterReconciler) Reconcile

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

Reconcile is the main controller reconcile function

func (*CAPIClusterReconciler) SetupWithManager

func (r *CAPIClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager creates a new controller and adds it to the manager

type ClusterRegistrationFnType

type ClusterRegistrationFnType func(ctx context.Context, r *CAPIClusterReconciler, cluster *unstructured.Unstructured) (ctrl.Result, error)

type ClusterUnregistrationFnType

type ClusterUnregistrationFnType func(ctx context.Context, r *CAPIClusterReconciler, cluster *unstructured.Unstructured) error

Jump to

Keyboard shortcuts

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