Documentation
¶
Index ¶
- func CAPIClusterClientObject() client.Object
- func SetClusterRegistrationFunction(f ClusterRegistrationFnType)
- func SetClusterUnregistrationFunction(f ClusterUnregistrationFnType)
- func SetDefaultClusterRegistrationFunction()
- func SetDefaultClusterUnregistrationFunction()
- func UnregisterRancherCluster(ctx context.Context, r *CAPIClusterReconciler, ...) error
- type CAPIClusterReconciler
- func (r *CAPIClusterReconciler) GetRancherAPIResources(cluster *unstructured.Unstructured) (*rancherutil.RancherConfig, vzlog.VerrazzanoLogger, error)
- func (r *CAPIClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *CAPIClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
- type ClusterRegistrationFnType
- type ClusterUnregistrationFnType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CAPIClusterClientObject ¶
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 ¶
func (r *CAPIClusterReconciler) GetRancherAPIResources(cluster *unstructured.Unstructured) (*rancherutil.RancherConfig, vzlog.VerrazzanoLogger, error)
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
Click to show internal directories.
Click to hide internal directories.