Documentation ¶
Index ¶
- Constants
- type RedisEndpointsReconciler
- type RedisReconciler
- func (r *RedisReconciler) CleanupPVCs(ctx context.Context, redis *lshcore.Redis) error
- func (r *RedisReconciler) Name() string
- func (r *RedisReconciler) OwnedConditions() []string
- func (r *RedisReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *RedisReconciler) ReconcilePodDisruptionBudget(ctx context.Context, redis *lshcore.Redis) error
- func (r *RedisReconciler) ReconcilePodMonitor(ctx context.Context, redis *lshcore.Redis) (*monitoringv1.PodMonitor, error)
- func (r *RedisReconciler) ReconcileRole(ctx context.Context, namespace string) (*rbacv1.Role, error)
- func (r *RedisReconciler) ReconcileRoleBinding(ctx context.Context, namespace string, role *rbacv1.Role, ...) (*rbacv1.RoleBinding, error)
- func (r *RedisReconciler) ReconcileSecret(ctx context.Context, redis *lshcore.Redis, service *corev1.Service) (*corev1.Secret, error)
- func (r *RedisReconciler) ReconcileService(ctx context.Context, redis *lshcore.Redis) (*corev1.Service, error)
- func (r *RedisReconciler) ReconcileServiceAccount(ctx context.Context, namespace string) (*corev1.ServiceAccount, error)
- func (r *RedisReconciler) ReconcileStatefulSet(ctx context.Context, redis *lshcore.Redis, service *corev1.Service, ...) (*appv1.StatefulSet, error)
- func (r *RedisReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
View Source
const ServiceAccountName = "keydb-manager"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisEndpointsReconciler ¶
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) SetupWithManager ¶
func (r *RedisEndpointsReconciler) SetupWithManager(mgr ctrl.Manager) error
type RedisReconciler ¶
RedisReconciler reconciles a Redis object
func (*RedisReconciler) CleanupPVCs ¶
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 ¶
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 (*RedisReconciler) ReconcilePodMonitor ¶ added in v0.3.0
func (r *RedisReconciler) ReconcilePodMonitor(ctx context.Context, redis *lshcore.Redis) (*monitoringv1.PodMonitor, error)
func (*RedisReconciler) ReconcileRole ¶
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 (*RedisReconciler) ReconcileService ¶
func (*RedisReconciler) ReconcileServiceAccount ¶
func (r *RedisReconciler) ReconcileServiceAccount(ctx context.Context, namespace string) (*corev1.ServiceAccount, error)
func (*RedisReconciler) ReconcileStatefulSet ¶
func (*RedisReconciler) SetupWithManager ¶
func (r *RedisReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.