core

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConditionTypeReconciling string = "Reconciling"
	ConditionTypeTerminating string = "Terminating"
	ConditionTypeReady       string = "Ready"
	ConditionTypeActive      string = "Active"
)
View Source
const (
	ResourceSetFinalizerName = "resourceset.core.aeto.net/finalizer"
)
View Source
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 ReconcileOrphanedResources

func ReconcileOrphanedResources(ctx reconcile.Context, k8s kubernetes.Client, stream eventsource.Stream) reconcile.Result

func ReconcileRequeueRequest

func ReconcileRequeueRequest(ctx reconcile.Context, stream eventsource.Stream) reconcile.Result

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

func (r *BlueprintReconciler) 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 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

type OrphanedResourceEventHandler

type OrphanedResourceEventHandler struct {
	// contains filtered or unexported fields
}

func (*OrphanedResourceEventHandler) On

type RequeueRequestEventHandler

type RequeueRequestEventHandler struct {
	// contains filtered or unexported fields
}

func (*RequeueRequestEventHandler) On

type ResourceSetEventHandler

type ResourceSetEventHandler struct {
	// contains filtered or unexported fields
}

func (*ResourceSetEventHandler) On

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

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

func (r *TenantReconciler) 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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL