statefulset

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Image = "ghcr.io/rkojedzinszky/postgres-patroni:20240909"

	PatroniSuperuserUsername = "postgres"

	DataVolumeMountPath = "/var/lib/postgresql"
)

Variables

This section is empty.

Functions

func GetK8SStatefulSet

func GetK8SStatefulSet(ctx context.Context, p *v1alpha1.PatroniPostgres) (sts *appsv1.StatefulSet, err error)

func Reconcile

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

func ReconcileSts

func ReconcileSts(ctx context.Context, p *v1alpha1.PatroniPostgres, patches ...Patch) (sts *appsv1.StatefulSet, err error)

Types

type Patch

type Patch interface {
	Patch(*appsv1.StatefulSet)
}

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