synapse

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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

type SynapseReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

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

func (r *SynapseReconciler) 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.

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.

Jump to

Keyboard shortcuts

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