Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
provider.Provider
EnsureSystemSettings(ctx context.Context, s *nxv1alpha1.System) error
ResetSystemSettings(ctx context.Context) error
}
Provider is the interface that a provider must implement to manage nx specific resources.
type SystemReconciler ¶
type SystemReconciler struct {
client.Client
Scheme *runtime.Scheme
// WatchFilterValue is the label value used to filter events prior to reconciliation.
WatchFilterValue string
// Recorder is used to record events for the controller.
// More info: https://book.kubebuilder.io/reference/raising-events
Recorder record.EventRecorder
// Provider is the driver that will be used to create & delete the system.
Provider provider.ProviderFunc
}
SystemReconciler reconciles a System object
func (*SystemReconciler) Reconcile ¶
func (r *SystemReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.20.2/pkg/reconcile
For more details about the method shape, read up here: - https://ahmet.im/blog/controller-pitfalls/#reconcile-method-shape
func (*SystemReconciler) SetupWithManager ¶
func (r *SystemReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.