controllers

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: EUPL-1.2 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceAccountName = "keydb-manager"

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisEndpointsReconciler

type RedisEndpointsReconciler struct {
	client.Client
}

func (*RedisEndpointsReconciler) Name added in v0.2.0

func (r *RedisEndpointsReconciler) Name() string

func (*RedisEndpointsReconciler) OwnedConditions added in v0.2.0

func (r *RedisEndpointsReconciler) OwnedConditions() []string

func (*RedisEndpointsReconciler) Reconcile

func (*RedisEndpointsReconciler) SetupWithManager

func (r *RedisEndpointsReconciler) SetupWithManager(mgr ctrl.Manager) error

type RedisReconciler

type RedisReconciler struct {
	client.Client
	PodMonitorEnabled bool
}

RedisReconciler reconciles a Redis object

func (*RedisReconciler) CleanupPVCs

func (r *RedisReconciler) CleanupPVCs(ctx context.Context, redis *lshcore.Redis) error

func (*RedisReconciler) Name added in v0.2.0

func (r *RedisReconciler) Name() string

func (*RedisReconciler) OwnedConditions added in v0.2.0

func (r *RedisReconciler) OwnedConditions() []string

func (*RedisReconciler) Reconcile

func (r *RedisReconciler) 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 Redis 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.12.2/pkg/reconcile

func (*RedisReconciler) ReconcilePodDisruptionBudget added in v0.2.0

func (r *RedisReconciler) ReconcilePodDisruptionBudget(ctx context.Context, redis *lshcore.Redis) error

func (*RedisReconciler) ReconcilePodMonitor added in v0.3.0

func (r *RedisReconciler) ReconcilePodMonitor(ctx context.Context, redis *lshcore.Redis) (*monitoringv1.PodMonitor, error)

func (*RedisReconciler) ReconcileRole

func (r *RedisReconciler) ReconcileRole(ctx context.Context, namespace string) (*rbacv1.Role, error)

func (*RedisReconciler) ReconcileRoleBinding

func (r *RedisReconciler) ReconcileRoleBinding(ctx context.Context, namespace string, role *rbacv1.Role, serviceAccount *corev1.ServiceAccount) (*rbacv1.RoleBinding, error)

func (*RedisReconciler) ReconcileSecret

func (r *RedisReconciler) ReconcileSecret(ctx context.Context, redis *lshcore.Redis, service *corev1.Service) (*corev1.Secret, error)

func (*RedisReconciler) ReconcileService

func (r *RedisReconciler) ReconcileService(ctx context.Context, redis *lshcore.Redis) (*corev1.Service, error)

func (*RedisReconciler) ReconcileServiceAccount

func (r *RedisReconciler) ReconcileServiceAccount(ctx context.Context, namespace string) (*corev1.ServiceAccount, error)

func (*RedisReconciler) ReconcileStatefulSet

func (r *RedisReconciler) ReconcileStatefulSet(ctx context.Context, redis *lshcore.Redis, service *corev1.Service, secret *corev1.Secret) (*appv1.StatefulSet, error)

func (*RedisReconciler) SetupWithManager

func (r *RedisReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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