Documentation ¶
Overview ¶
/ SPDX-FileCopyrightText: 2021 Finanz Informatik Technologie Services GmbHs / / SPDX-License-Identifier: AGPL-1.0-only
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresReconciler ¶
type PostgresReconciler struct { CtrlClient client.Client SvcClient client.Client Log logr.Logger Scheme *runtime.Scheme PartitionID, Tenant, StorageClass string *operatormanager.OperatorManager *lbmanager.LBManager PgParamBlockList map[string]bool StandbyClustersSourceRanges []string PostgresletNamespace string SidecarsConfigMapName string EnableNetPol bool EtcdHost string PatroniTTL uint32 PatroniLoopWait uint32 PatroniRetryTimeout uint32 // contains filtered or unexported fields }
PostgresReconciler reconciles a Postgres object
func (*PostgresReconciler) Reconcile ¶
Reconcile is the entry point for postgres reconciliation. +kubebuilder:rbac:groups=database.fits.cloud,resources=postgres,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=database.fits.cloud,resources=postgres/status,verbs=get;update;patch +kubebuilder:rbac:groups=acid.zalan.do,resources=postgresqls,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=acid.zalan.do,resources=postgresqls/status,verbs=get;list;watch
func (*PostgresReconciler) SetupWithManager ¶
func (r *PostgresReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager informs mgr when this reconciler should be called.
type StatusReconciler ¶
type StatusReconciler struct { SvcClient client.Client CtrlClient client.Client Log logr.Logger Scheme *runtime.Scheme }
StatusReconciler reconciles a Postgresql object
func (*StatusReconciler) Reconcile ¶
Reconcile updates the status of the remote Postgres object based on the status of the local zalando object. +kubebuilder:rbac:groups=acid.zalan.do,resources=postgresqls,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=acid.zalan.do,resources=postgresqls/status,verbs=get;update;patch
func (*StatusReconciler) SetupWithManager ¶
func (r *StatusReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers this controller for reconciliation of Postgresql resources