database

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DB_UPGRADE_JOB_PATH = "/pgconf/postgres-operator/database/1/database-upgrade-job.json"

Variables

View Source
var JobTemplate1 *template.Template
View Source
var PodTemplate1 *template.Template
View Source
var RestorePodTemplate1 *template.Template
View Source
var ServiceTemplate1 *template.Template
View Source
var StrategyMap map[string]DatabaseStrategy

Functions

func AddUpgrade

func AddUpgrade(clientset *kubernetes.Clientset, client *rest.RESTClient, upgrade *tpr.PgUpgrade, namespace string, db *tpr.PgDatabase) error

func Process

func Process(clientset *kubernetes.Clientset, client *rest.RESTClient, stopchan chan struct{}, namespace string)

Types

type DatabaseStrategy1

type DatabaseStrategy1 struct{}

func (DatabaseStrategy1) AddDatabase

func (r DatabaseStrategy1) AddDatabase(clientset *kubernetes.Clientset, client *rest.RESTClient, db *tpr.PgDatabase, namespace string) error

database consists of a Service and a Pod

func (DatabaseStrategy1) DeleteDatabase

func (r DatabaseStrategy1) DeleteDatabase(clientset *kubernetes.Clientset, client *rest.RESTClient, db *tpr.PgDatabase, namespace string) error

func (DatabaseStrategy1) MajorUpgrade

func (r DatabaseStrategy1) MajorUpgrade(clientset *kubernetes.Clientset, client *rest.RESTClient, db *tpr.PgDatabase, upgrade *tpr.PgUpgrade, namespace string) error

func (DatabaseStrategy1) MajorUpgradeFinalize

func (r DatabaseStrategy1) MajorUpgradeFinalize(clientset *kubernetes.Clientset, tprclient *rest.RESTClient, db *tpr.PgDatabase, upgrade *tpr.PgUpgrade, namespace string) error

func (DatabaseStrategy1) MinorUpgrade

func (r DatabaseStrategy1) MinorUpgrade(clientset *kubernetes.Clientset, client *rest.RESTClient, db *tpr.PgDatabase, upgrade *tpr.PgUpgrade, namespace string) error

type JobTemplateFields

type JobTemplateFields struct {
	Name              string
	OLD_PVC_NAME      string
	NEW_PVC_NAME      string
	CCP_IMAGE_TAG     string
	OLD_DATABASE_NAME string
	NEW_DATABASE_NAME string
	OLD_VERSION       string
	NEW_VERSION       string
}

type PodTemplateFields

type PodTemplateFields struct {
	Name                 string
	Port                 string
	PVC_NAME             string
	CCP_IMAGE_TAG        string
	PG_MASTER_USER       string
	PG_MASTER_PASSWORD   string
	PG_USER              string
	PG_PASSWORD          string
	PG_DATABASE          string
	PG_ROOT_PASSWORD     string
	PGDATA_PATH_OVERRIDE string
	BACKUP_PVC_NAME      string
	BACKUP_PATH          string
	SECURITY_CONTEXT     string
}

type ServiceTemplateFields

type ServiceTemplateFields struct {
	Name string
	Port string
}

Jump to

Keyboard shortcuts

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