pgadmin

package
v5.1.2-bit Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMap

func ConfigMap(
	inCluster *v1beta1.PostgresCluster,
	outConfigMap *corev1.ConfigMap,
) error

ConfigMap populates a ConfigMap with the configuration needed to run pgAdmin.

func Pod

func Pod(
	inCluster *v1beta1.PostgresCluster,
	inConfigMap *corev1.ConfigMap,
	outPod *corev1.PodSpec, pgAdminVolume *corev1.PersistentVolumeClaim,
)

Pod populates a PodSpec with the container and volumes needed to run pgAdmin.

func WriteUsersInPGAdmin

func WriteUsersInPGAdmin(
	ctx context.Context, cluster *v1beta1.PostgresCluster, exec Executor,
	users []v1beta1.PostgresUserSpec, passwords map[string]string,
) error

WriteUsersInPGAdmin uses exec and "python" to create users in pgAdmin and update their passwords when they already exist. A blank password for a user blocks that user from logging in to pgAdmin. The pgAdmin configuration database must exist before calling this.

Types

type Executor

type Executor func(
	ctx context.Context, stdin io.Reader, stdout, stderr io.Writer, command ...string,
) error

Jump to

Keyboard shortcuts

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