Documentation
¶
Index ¶
Constants ¶
View Source
const ( NauticusFinalizer = "nauticus.io/finalizer" SpaceConditionReady nauticusiov1alpha1.ConditionType = "Ready" SpaceConditionCreating nauticusiov1alpha1.ConditionType = "Creating" SpaceConditionFailed nauticusiov1alpha1.ConditionType = "Failed" SpaceConditionStatusUnknown = metav1.ConditionStatus(corev1.ConditionUnknown) SpaceConditionStatusTrue = metav1.ConditionStatus(corev1.ConditionTrue) SpaceConditionStatusFalse = metav1.ConditionStatus(corev1.ConditionFalse) SpaceSyncSuccessReason nauticusiov1alpha1.ConditionReason = "SpaceSyncedSuccessfully" SpaceCreatingReason nauticusiov1alpha1.ConditionReason = "SpaceCreating" SpaceFailedReason nauticusiov1alpha1.ConditionReason = "SpaceSyncFailed" SpaceSyncSuccessMessage nauticusiov1alpha1.ConditionMessage = "Space synced successfully" SpaceSyncFailMessage nauticusiov1alpha1.ConditionMessage = "Space failed to sync" SpaceCreatingMessage nauticusiov1alpha1.ConditionMessage = "Creating Space in progress" )
Variables ¶
View Source
var Clock clock.Clock = clock.RealClock{}
Clock is defined as a package var so it can be stubbed out during tests.
Functions ¶
This section is empty.
Types ¶
type SpaceReconciler ¶
type SpaceReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder
Log logr.Logger
}
SpaceReconciler reconciles a Space object.
func (*SpaceReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. the Space 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.13.1/pkg/reconcile
func (*SpaceReconciler) SetupWithManager ¶
func (s *SpaceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.