Documentation ¶
Index ¶
- func GetPostgresClusterResourceName(synapse synapsev1alpha1.Synapse) string
- type HomeserverPgsqlDatabase
- type SynapseReconciler
- func (r *SynapseReconciler) ParseHomeserverConfigMap(ctx context.Context, synapse *synapsev1alpha1.Synapse, cm corev1.ConfigMap) error
- func (r *SynapseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *SynapseReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPostgresClusterResourceName ¶
func GetPostgresClusterResourceName(synapse synapsev1alpha1.Synapse) string
Types ¶
type HomeserverPgsqlDatabase ¶
type HomeserverPgsqlDatabase struct { Name string `yaml:"name"` TxnLimit int64 `yaml:"txn_limit"` Args struct { User string `yaml:"user"` Password string `yaml:"password"` Database string `yaml:"database"` Host string `yaml:"host"` Port int64 `yaml:"port"` CpMin int64 `yaml:"cp_min"` CpMax int64 `yaml:"cp_max"` } }
type SynapseReconciler ¶
SynapseReconciler reconciles a Synapse object
func (*SynapseReconciler) ParseHomeserverConfigMap ¶
func (r *SynapseReconciler) ParseHomeserverConfigMap(ctx context.Context, synapse *synapsev1alpha1.Synapse, cm corev1.ConfigMap) error
ParseHomeserverConfigMap loads the ConfigMap, which name is determined by Spec.Homeserver.ConfigMap.Name, run validation checks and fetch necesarry value needed to configure the Synapse Deployment.
func (*SynapseReconciler) 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile
func (*SynapseReconciler) SetupWithManager ¶
func (r *SynapseReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.