Documentation
¶
Index ¶
- Constants
- func GetK8SStatefulSet(ctx context.Context, p *v1alpha1.PatroniPostgres) (sts *appsv1.StatefulSet, err error)
- func Reconcile(ctx context.Context, p *v1alpha1.PatroniPostgres) (err error)
- func ReconcileSts(ctx context.Context, p *v1alpha1.PatroniPostgres, patches ...Patch) (sts *appsv1.StatefulSet, err error)
- type Patch
Constants ¶
View Source
const ( Image = "ghcr.io/rkojedzinszky/postgres-patroni:20250114" 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 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 WithPausedPatroni ¶
func WithPausedPatroni(p *v1alpha1.PatroniPostgres) Patch
func WithPostgresqlPort ¶
Click to show internal directories.
Click to hide internal directories.