Documentation
¶
Index ¶
- Constants
- func NewDeleteEventHandler(state *deleteState) eventsource.EventHandler
- func NewOrphanedResourceEventHandler(state *orhanedResourceState) eventsource.EventHandler
- func NewResourceSet() *corev1alpha1.ResourceSet
- func NewResourceSetEventHandler(state *resourceSetState) eventsource.EventHandler
- func NewTenantStatusEventHandler(state *corev1alpha1.TenantStatus) eventsource.EventHandler
- func ReconcileDelete(ctx reconcile.Context, k8s kubernetes.Client, store eventsource.Repository, ...) reconcile.Result
- func ReconcileOrphanedResources(ctx reconcile.Context, k8s kubernetes.Client, stream eventsource.Stream) reconcile.Result
- func ReconcileRequeueRequest(ctx reconcile.Context, stream eventsource.Stream) reconcile.Result
- func ReconcileResourceSet(ctx reconcile.Context, k8s kubernetes.Client, stream eventsource.Stream) reconcile.Result
- func ReconcileStatus(ctx reconcile.Context, client kubernetes.Client, tenant corev1alpha1.Tenant, ...) reconcile.Result
- type BlueprintReconciler
- type DeleteEventHandler
- type OrphanedResourceEventHandler
- type RequeueRequestEventHandler
- type ResourceSetEventHandler
- type ResourceSetNameSorter
- type ResourceSetReconciler
- type ResourceTemplateReconciler
- type TenantReconciler
- type TenantStatusEventHandler
Constants ¶
const ( ConditionTypeReconciling string = "Reconciling" ConditionTypeTerminating string = "Terminating" ConditionTypeReady string = "Ready" ConditionTypeActive string = "Active" )
const (
ResourceSetFinalizerName = "resourceset.core.aeto.net/finalizer"
)
const (
TenantFinalizerName = "tenant.core.aeto.net/finalizer"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeleteEventHandler ¶
func NewDeleteEventHandler(state *deleteState) eventsource.EventHandler
func NewOrphanedResourceEventHandler ¶
func NewOrphanedResourceEventHandler(state *orhanedResourceState) eventsource.EventHandler
func NewResourceSet ¶
func NewResourceSet() *corev1alpha1.ResourceSet
func NewResourceSetEventHandler ¶
func NewResourceSetEventHandler(state *resourceSetState) eventsource.EventHandler
func NewTenantStatusEventHandler ¶
func NewTenantStatusEventHandler(state *corev1alpha1.TenantStatus) eventsource.EventHandler
func ReconcileDelete ¶
func ReconcileDelete(ctx reconcile.Context, k8s kubernetes.Client, store eventsource.Repository, stream eventsource.Stream) reconcile.Result
func ReconcileOrphanedResources ¶
func ReconcileOrphanedResources(ctx reconcile.Context, k8s kubernetes.Client, stream eventsource.Stream) reconcile.Result
func ReconcileRequeueRequest ¶
func ReconcileResourceSet ¶
func ReconcileResourceSet(ctx reconcile.Context, k8s kubernetes.Client, stream eventsource.Stream) reconcile.Result
func ReconcileStatus ¶
func ReconcileStatus(ctx reconcile.Context, client kubernetes.Client, tenant corev1alpha1.Tenant, stream eventsource.Stream) reconcile.Result
Types ¶
type BlueprintReconciler ¶
type BlueprintReconciler struct { kubernetes.Client Scheme *runtime.Scheme }
BlueprintReconciler reconciles a Blueprint object
func (*BlueprintReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the Blueprint 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.10.0/pkg/reconcile
func (*BlueprintReconciler) SetupWithManager ¶
func (r *BlueprintReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DeleteEventHandler ¶
type DeleteEventHandler struct {
// contains filtered or unexported fields
}
func (*DeleteEventHandler) On ¶
func (h *DeleteEventHandler) On(e eventsource.Event)
type OrphanedResourceEventHandler ¶
type OrphanedResourceEventHandler struct {
// contains filtered or unexported fields
}
func (*OrphanedResourceEventHandler) On ¶
func (h *OrphanedResourceEventHandler) On(e eventsource.Event)
type RequeueRequestEventHandler ¶
type RequeueRequestEventHandler struct {
// contains filtered or unexported fields
}
func (*RequeueRequestEventHandler) On ¶
func (h *RequeueRequestEventHandler) On(e eventsource.Event)
type ResourceSetEventHandler ¶
type ResourceSetEventHandler struct {
// contains filtered or unexported fields
}
func (*ResourceSetEventHandler) On ¶
func (h *ResourceSetEventHandler) On(e eventsource.Event)
type ResourceSetNameSorter ¶
type ResourceSetNameSorter []*corev1alpha1.ResourceSet
ResourceSetNameSorter sorts ResourceSet's by name.
func (ResourceSetNameSorter) Len ¶
func (a ResourceSetNameSorter) Len() int
func (ResourceSetNameSorter) Less ¶
func (a ResourceSetNameSorter) Less(i, j int) bool
func (ResourceSetNameSorter) Swap ¶
func (a ResourceSetNameSorter) Swap(i, j int)
type ResourceSetReconciler ¶
type ResourceSetReconciler struct { kubernetes.Client Scheme *runtime.Scheme }
ResourceSetReconciler reconciles a ResourceSet object
func (*ResourceSetReconciler) Reconcile ¶
func (r *ResourceSetReconciler) Reconcile(ctx context.Context, req 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 ResourceSet 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.10.0/pkg/reconcile
func (*ResourceSetReconciler) SetupWithManager ¶
func (r *ResourceSetReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ResourceTemplateReconciler ¶
type ResourceTemplateReconciler struct { kubernetes.Client Scheme *runtime.Scheme }
ResourceTemplateReconciler reconciles a ResourceTemplate object
func (*ResourceTemplateReconciler) Reconcile ¶
func (r *ResourceTemplateReconciler) Reconcile(ctx context.Context, req 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 ResourceTemplate 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.10.0/pkg/reconcile
func (*ResourceTemplateReconciler) SetupWithManager ¶
func (r *ResourceTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type TenantReconciler ¶
type TenantReconciler struct { kubernetes.Client Scheme *runtime.Scheme Recorder record.EventRecorder }
TenantReconciler reconciles a Tenant object
func (*TenantReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the Tenant 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.10.0/pkg/reconcile
func (*TenantReconciler) SetupWithManager ¶
func (r *TenantReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type TenantStatusEventHandler ¶
type TenantStatusEventHandler struct {
// contains filtered or unexported fields
}
func (*TenantStatusEventHandler) On ¶
func (h *TenantStatusEventHandler) On(e eventsource.Event)