capi

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CAPIClusterClientObject

func CAPIClusterClientObject() client.Object

func SetClusterRancherRegistrationFunction added in v1.7.0

func SetClusterRancherRegistrationFunction(f ClusterRancherRegistrationFnType)

func SetClusterRancherUnregistrationFunction added in v1.7.0

func SetClusterRancherUnregistrationFunction(f ClusterRancherUnregistrationFnType)

func SetDefaultClusterRancherRegistrationFunction added in v1.7.0

func SetDefaultClusterRancherRegistrationFunction()

func SetDefaultClusterRancherUnregistrationFunction added in v1.7.0

func SetDefaultClusterRancherUnregistrationFunction()

func SetDefaultVerrazzanoReconcileFunction added in v1.7.0

func SetDefaultVerrazzanoReconcileFunction()

func SetVerrazzanoReconcileFunction added in v1.7.0

func SetVerrazzanoReconcileFunction(f VerrazzanoReconcileFnType)

func UnregisterRancherCluster

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

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

func UnregisterVerrazzanoCluster added in v1.7.0

func UnregisterVerrazzanoCluster(ctx context.Context, v *VerrazzanoRegistration, cluster *unstructured.Unstructured) error

UnregisterVerrazzanoCluster performs the operations required to de-register the cluster from Verrazzano

Types

type CAPIClusterReconciler

type CAPIClusterReconciler struct {
	client.Client
	Scheme              *runtime.Scheme
	Log                 *zap.SugaredLogger
	RancherRegistrar    *RancherRegistration
	RancherIngressHost  string
	RancherEnabled      bool
	VerrazzanoRegistrar *VerrazzanoRegistration
}

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 ClusterRancherRegistrationFnType added in v1.7.0

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

type ClusterRancherUnregistrationFnType added in v1.7.0

type ClusterRancherUnregistrationFnType func(ctx context.Context, r *RancherRegistration, cluster *unstructured.Unstructured) error

type RancherRegistration added in v1.7.0

type RancherRegistration struct {
	client.Client
	Log                *zap.SugaredLogger
	RancherIngressHost string
}

func (*RancherRegistration) GetRancherAPIResources added in v1.7.0

GetRancherAPIResources returns the set of resources required for interacting with Rancher

type VerrazzanoReconcileFnType added in v1.7.0

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

type VerrazzanoRegistration added in v1.7.0

type VerrazzanoRegistration struct {
	client.Client
	Log *zap.SugaredLogger
}

Jump to

Keyboard shortcuts

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