final version of version service
MODIFY
pkg/apis/pxc/v1/pxc_types.go
pkg/apis/pxc/v1/pxc_types.go
@@ -3,7 +3,6 @@ package v1
import (
"encoding/json"
"fmt"
- "github.com/percona/percona-xtradb-cluster-operator/version"
"strings"
v "github.com/hashicorp/go-version"
@@ -514,11 +513,7 @@ func (cr *PerconaXtraDBCluster) CheckNSetDefaults(serverVersion *ServerVersion)
}
cr.setSecurityContext()
-
- ver,err := version.GetServer()
- if err == nil {
- cr.Spec.Platform = &ver.Platform
- }
+ cr.Spec.Platform = serverVersion.Platform
return changed, nil
}

MODIFY
pkg/controller/pxc/vs.go
pkg/controller/pxc/vs.go
@@ -111,7 +111,7 @@ type DepVersion struct {
}
type VersionService interface {
- GetExactVersion(versionMeta versionMeta) (DepVersion, error)
+ GetExactVersion(vm versionMeta) (DepVersion, error)
}
type VersionServiceClient struct {

final version of version service