Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Finalizer for Crossplane instance resources Finalizer = providersv1alpha1.GroupVersion.Group + "/finalizers" )
Functions ¶
This section is empty.
Types ¶
type CrossplaneReconciler ¶
type CrossplaneReconciler struct { PlatformCluster *clusters.Cluster OnboardingCluster *clusters.Cluster ClusterAccessReconciler clusteraccess.Reconciler Recorder record.EventRecorder RequeueStore *smartrequeue.Store }
CrossplaneReconciler reconciles a Crossplane object
func (*CrossplaneReconciler) GetResolverFunc ¶
func (r *CrossplaneReconciler) GetResolverFunc(providerConfig *v1alpha1.ProviderConfig) v1beta1.VersionResolverFn
GetResolverFunc is used to verify if the Crossplane instance configuration with its providers is valid. It checks the name and versions against the configured v1alpha1.ProviderConfig on the Platform cluster. The function returns a v1beta1.VersionResolverFn that can be used to resolve the versions later in the reconcile loop.
func (*CrossplaneReconciler) Reconcile ¶
func (r *CrossplaneReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reconciles the Crossplane instance. +kubebuilder:rbac:groups=crossplane.services.openmcp.cloud,resources=crossplanes,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=crossplane.services.openmcp.cloud,resources=crossplanes/status,verbs=get;update;patch +kubebuilder:rbac:groups=crossplane.services.openmcp.cloud,resources=crossplanes/finalizers,verbs=update
func (*CrossplaneReconciler) SetupWithManager ¶
func (r *CrossplaneReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ProviderConfigReconciler ¶
type ProviderConfigReconciler struct { PlatformCluster *clusters.Cluster OnboardingCluster *clusters.Cluster }
ProviderConfigReconciler reconciles a ProviderConfig object
func (*ProviderConfigReconciler) Reconcile ¶
func (r *ProviderConfigReconciler) Reconcile(ctx context.Context, _ ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ProviderConfig object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.21.0/pkg/reconcile
func (*ProviderConfigReconciler) SetupWithManager ¶
func (r *ProviderConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.