Documentation ¶
Index ¶
- func GetDeletableResources(config GroupDeleteableResourceBuilderConfiguration) []resources.DeleteableResource
- func GetResources(config GroupResourceBuilderConfiguration) []resources.Resource
- type DataStore
- type GroupDeleteableResourceBuilderConfiguration
- type GroupResourceBuilderConfiguration
- type TenantControlPlaneChannel
- type TenantControlPlaneReconciler
- func (r *TenantControlPlaneReconciler) AddFinalizer(ctx context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error
- func (r *TenantControlPlaneReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *TenantControlPlaneReconciler) RemoveFinalizer(ctx context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error
- func (r *TenantControlPlaneReconciler) SetupWithManager(mgr ctrl.Manager) error
- type TenantControlPlaneReconcilerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeletableResources ¶ added in v0.1.0
func GetDeletableResources(config GroupDeleteableResourceBuilderConfiguration) []resources.DeleteableResource
GetDeletableResources returns a list of resources that have to be deleted when tenant control planes are deleted Currently there is only a default approach TODO: the idea of this function is to become a factory to return the group of deleteable resources according to the given configuration.
func GetResources ¶ added in v0.1.0
func GetResources(config GroupResourceBuilderConfiguration) []resources.Resource
GetResources returns a list of resources that will be used to provide tenant control planes Currently there is only a default approach TODO: the idea of this function is to become a factory to return the group of resources according to the given configuration.
Types ¶
type DataStore ¶ added in v0.1.0
type DataStore struct { // TenantControlPlaneTrigger is the channel used to communicate across the controllers: // if a Data Source is updated we have to be sure that the reconciliation of the certificates content // for each Tenant Control Plane is put in place properly. TenantControlPlaneTrigger TenantControlPlaneChannel // contains filtered or unexported fields }
func (*DataStore) InjectClient ¶ added in v0.1.0
func (*DataStore) SetupWithManager ¶ added in v0.1.0
func (r *DataStore) SetupWithManager(mgr controllerruntime.Manager) error
type GroupDeleteableResourceBuilderConfiguration ¶ added in v0.1.0
type GroupDeleteableResourceBuilderConfiguration struct {
// contains filtered or unexported fields
}
type GroupResourceBuilderConfiguration ¶ added in v0.1.0
type GroupResourceBuilderConfiguration struct { Connection datastore.Connection DataStore kamajiv1alpha1.DataStore // contains filtered or unexported fields }
type TenantControlPlaneChannel ¶ added in v0.1.0
type TenantControlPlaneChannel chan event.GenericEvent
type TenantControlPlaneReconciler ¶
type TenantControlPlaneReconciler struct { client.Client Scheme *runtime.Scheme Config TenantControlPlaneReconcilerConfig TriggerChan TenantControlPlaneChannel }
TenantControlPlaneReconciler reconciles a TenantControlPlane object.
func (*TenantControlPlaneReconciler) AddFinalizer ¶ added in v0.1.0
func (r *TenantControlPlaneReconciler) AddFinalizer(ctx context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error
func (*TenantControlPlaneReconciler) RemoveFinalizer ¶ added in v0.1.0
func (r *TenantControlPlaneReconciler) RemoveFinalizer(ctx context.Context, tenantControlPlane *kamajiv1alpha1.TenantControlPlane) error
func (*TenantControlPlaneReconciler) SetupWithManager ¶
func (r *TenantControlPlaneReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type TenantControlPlaneReconcilerConfig ¶
type TenantControlPlaneReconcilerConfig struct { DefaultDataStoreName string KineContainerImage string TmpBaseDirectory string }
TenantControlPlaneReconcilerConfig gives the necessary configuration for TenantControlPlaneReconciler.