зеркало из https://github.com/Azure/ARO-RP.git
install the default in E2E
This commit is contained in:
Родитель
1b587dd109
Коммит
ab8480868e
|
@ -1,4 +1,3 @@
|
||||||
variables:
|
variables:
|
||||||
GOPATH: $(Agent.BuildDirectory)/go
|
GOPATH: $(Agent.BuildDirectory)/go
|
||||||
OpenShiftVersion: 4.10.20
|
|
||||||
ARO_CHECKOUT_PATH: $(Agent.BuildDirectory)/go/src/github.com/Azure/ARO-RP
|
ARO_CHECKOUT_PATH: $(Agent.BuildDirectory)/go/src/github.com/Azure/ARO-RP
|
||||||
|
|
|
@ -18,6 +18,7 @@ import (
|
||||||
"github.com/Azure/ARO-RP/pkg/env"
|
"github.com/Azure/ARO-RP/pkg/env"
|
||||||
"github.com/Azure/ARO-RP/pkg/util/cluster"
|
"github.com/Azure/ARO-RP/pkg/util/cluster"
|
||||||
utillog "github.com/Azure/ARO-RP/pkg/util/log"
|
utillog "github.com/Azure/ARO-RP/pkg/util/log"
|
||||||
|
"github.com/Azure/ARO-RP/pkg/util/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -45,6 +46,12 @@ func run(ctx context.Context, log *logrus.Entry) error {
|
||||||
clusterName := os.Getenv(Cluster)
|
clusterName := os.Getenv(Cluster)
|
||||||
|
|
||||||
osClusterVersion := os.Getenv("OS_CLUSTER_VERSION")
|
osClusterVersion := os.Getenv("OS_CLUSTER_VERSION")
|
||||||
|
if osClusterVersion == "" {
|
||||||
|
osClusterVersion = version.DefaultInstallStream.Version.String()
|
||||||
|
log.Infof("using default cluster version %s", osClusterVersion)
|
||||||
|
} else {
|
||||||
|
log.Infof("using specified cluster version %s", osClusterVersion)
|
||||||
|
}
|
||||||
|
|
||||||
c, err := cluster.New(log, env, os.Getenv("CI") != "")
|
c, err := cluster.New(log, env, os.Getenv("CI") != "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче