Documentation
¶
Index ¶
- func EnsureVersion(clientset kubeapi.Interface, cr *api.PerconaPGCluster, vs VersionService) error
- func GetPostgresqlVersion(clientset kubeapi.Interface, cluster *crv1.Pgcluster) (string, error)
- func TelemetryEnabled() bool
- func VersionUpgradeEnabled(cr *api.PerconaPGCluster) bool
- type DepVersion
- type VersionService
- type VersionServiceClient
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 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)
Click to show internal directories.
Click to hide internal directories.