version

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureVersion

func EnsureVersion(clientset kubeapi.Interface, cr *api.PerconaPGCluster, vs VersionService) error

func GetPostgresqlVersion added in v1.2.0

func GetPostgresqlVersion(clientset kubeapi.Interface, cluster *crv1.Pgcluster) (string, error)

func TelemetryEnabled added in v1.3.0

func TelemetryEnabled() bool

func VersionUpgradeEnabled added in v1.3.0

func VersionUpgradeEnabled(cr *api.PerconaPGCluster) bool

Types

type DepVersion

type DepVersion struct {
	PGBackrestImage       string `json:"pgBackrestImage,omitempty"`
	PGBackrestVersion     string `json:"pgBackrestVersion,omitempty"`
	PGBackrestRepoImage   string `json:"pgBackrestRepoImage,omitempty"`
	PGBackrestRepoVersion string `json:"pgBackrestRepoVersion,omitempty"`
	PMMImage              string `json:"pmmImage,omitempty"`
	PMMVersion            string `json:"pmmVersion,omitempty"`
	PostgresImage         string `json:"postgresImage,omitempty"`
	PostgresVersion       string `json:"postgresVersion,omitempty"`
	PGBouncerImage        string `json:"pgBouncerImage,omitempty"`
	PGBouncerVersion      string `json:"pgBouncerVersion,omitempty"`
	PGBadgerImage         string `json:"pgBadgerImage,omitempty"`
	PGBadgerVersion       string `json:"pgBadgerVersion,omitempty"`
}

type VersionService

type VersionService interface {
	GetExactVersion(cr *api.PerconaPGCluster, endpoint string, vm versionMeta) (DepVersion, error)
}

type VersionServiceClient

type VersionServiceClient struct {
	OpVersion string
}

func (VersionServiceClient) GetExactVersion

func (vs VersionServiceClient) GetExactVersion(cr *api.PerconaPGCluster, endpoint string, vm versionMeta) (DepVersion, error)

Jump to

Keyboard shortcuts

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