service

package
v0.0.0-...-3669d16 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PatroniPodRoleKey     = "role"
	PatroniPodRole_Master = "master"

	PostgresPort     = 5432
	PostgresPortName = "postgres"
)

Variables

This section is empty.

Functions

func HeadlessServiceName

func HeadlessServiceName(p *v1alpha1.PatroniPostgres) string

func Reconcile

func Reconcile(ctx context.Context, p *v1alpha1.PatroniPostgres) (err error)

func ReconcileService

func ReconcileService(ctx context.Context, p *v1alpha1.PatroniPostgres, patches ...Patch) (err error)

Types

type Patch

type Patch interface {
	Patch(*corev1.Service)
}

func WithPostgresqlPort

func WithPostgresqlPort(port int) Patch

Jump to

Keyboard shortcuts

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