Documentation ¶
Index ¶
- func CAPIClusterClientObject() client.Object
- func SetClusterRancherRegistrationFunction(f ClusterRancherRegistrationFnType)
- func SetClusterRancherUnregistrationFunction(f ClusterRancherUnregistrationFnType)
- func SetDefaultClusterRancherRegistrationFunction()
- func SetDefaultClusterRancherUnregistrationFunction()
- func SetDefaultVerrazzanoReconcileFunction()
- func SetVerrazzanoReconcileFunction(f VerrazzanoReconcileFnType)
- func UnregisterRancherCluster(ctx context.Context, r *RancherRegistration, ...) error
- func UnregisterVerrazzanoCluster(ctx context.Context, v *VerrazzanoRegistration, ...) error
- type CAPIClusterReconciler
- type ClusterRancherRegistrationFnType
- type ClusterRancherUnregistrationFnType
- type RancherRegistration
- type VerrazzanoReconcileFnType
- type VerrazzanoRegistration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CAPIClusterClientObject ¶
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
func (r *RancherRegistration) GetRancherAPIResources(cluster *unstructured.Unstructured) (*rancherutil.RancherConfig, vzlog.VerrazzanoLogger, error)
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 }
Click to show internal directories.
Click to hide internal directories.