Documentation ¶
Index ¶
- Variables
- func CleanImageVersions(ctx context.Context, cli client.Client, logger logr.Logger) error
- func CreateOrUpdateImageVersion(ctx context.Context, cli client.Client, iv *vc.ImageVersion) error
- func GenerateCurrentImageVersion(ctx context.Context, cli client.Client, logger logr.Logger) (*vc.ImageVersion, error)
- func GenerateOldImageVersion(ctx context.Context, cli client.Client, namespace string, logger logr.Logger) (*vc.ImageVersion, error)
- func GenerateRedisBundleImageVersion(version string) string
- func GetImageNameAndTagFromEnv(name string) (string, string, error)
- func InstallCurrentImageVersion(ctx context.Context, cli client.Client, logger logr.Logger) error
- func InstallOldImageVersion(ctx context.Context, cli client.Client, namespace string, logger logr.Logger) error
- func IsBundleVersionUpgradeable(oldBV, newBV *BundleVersion, displayVersion string) bool
- func ParseImageAndTag(image string) (string, string, error)
- type BundleVersion
- func (bv *BundleVersion) GetActiveRedisImage(version string) (string, error)
- func (bv *BundleVersion) GetComponent(compName string, displayVersion string) *v1.ComponentVersion
- func (bv *BundleVersion) GetDefaultRedisImage() (string, error)
- func (bv *BundleVersion) GetExposePodImage() (string, error)
- func (bv *BundleVersion) GetImage(compName string, displayVersion string) (string, error)
- func (bv *BundleVersion) GetRedisExporterImage() (string, error)
- func (bv *BundleVersion) GetRedisImage(displayVersion string) (string, error)
- func (bv *BundleVersion) GetRedisProxyImage() (string, error)
- func (bv *BundleVersion) GetRedisShakeImage() (string, error)
- func (bv *BundleVersion) GetRedisToolsImage() (string, error)
- func (bv *BundleVersion) IsLatest() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBundleVersionNotFound = errors.New("bundle version not found") ErrInvalidImage = errors.New("invalid source image") )
Functions ¶
func CleanImageVersions ¶
func GenerateOldImageVersion ¶
func GenerateOldImageVersion(ctx context.Context, cli client.Client, namespace string, logger logr.Logger) (*vc.ImageVersion, error)
GenerateOldImageVersion generate the old version of ImageVersion this function only fetch three images: redis,redis-exporter,redis-tools images of redisbackup,redisproxy,redisshake will be ignored
func InstallOldImageVersion ¶
func IsBundleVersionUpgradeable ¶
func IsBundleVersionUpgradeable(oldBV, newBV *BundleVersion, displayVersion string) bool
Types ¶
type BundleVersion ¶
type BundleVersion v1.ImageVersion
func GetBundleVersion ¶
func GetLatestBundleVersion ¶
func (*BundleVersion) GetActiveRedisImage ¶
func (bv *BundleVersion) GetActiveRedisImage(version string) (string, error)
func (*BundleVersion) GetComponent ¶
func (bv *BundleVersion) GetComponent(compName string, displayVersion string) *v1.ComponentVersion
func (*BundleVersion) GetDefaultRedisImage ¶
func (bv *BundleVersion) GetDefaultRedisImage() (string, error)
func (*BundleVersion) GetExposePodImage ¶
func (bv *BundleVersion) GetExposePodImage() (string, error)
func (*BundleVersion) GetImage ¶
func (bv *BundleVersion) GetImage(compName string, displayVersion string) (string, error)
func (*BundleVersion) GetRedisExporterImage ¶
func (bv *BundleVersion) GetRedisExporterImage() (string, error)
func (*BundleVersion) GetRedisImage ¶
func (bv *BundleVersion) GetRedisImage(displayVersion string) (string, error)
func (*BundleVersion) GetRedisProxyImage ¶
func (bv *BundleVersion) GetRedisProxyImage() (string, error)
func (*BundleVersion) GetRedisShakeImage ¶
func (bv *BundleVersion) GetRedisShakeImage() (string, error)
func (*BundleVersion) GetRedisToolsImage ¶
func (bv *BundleVersion) GetRedisToolsImage() (string, error)
func (*BundleVersion) IsLatest ¶
func (bv *BundleVersion) IsLatest() bool
Click to show internal directories.
Click to hide internal directories.