зеркало из https://github.com/Azure/ARO-RP.git
Use v20220904
This commit is contained in:
Родитель
7b857f18a2
Коммит
0e652505a1
|
@ -27,8 +27,8 @@ import (
|
|||
"k8s.io/apimachinery/pkg/util/wait"
|
||||
|
||||
"github.com/Azure/ARO-RP/pkg/api"
|
||||
v20220401 "github.com/Azure/ARO-RP/pkg/api/v20220401"
|
||||
mgmtredhatopenshift20220401 "github.com/Azure/ARO-RP/pkg/client/services/redhatopenshift/mgmt/2022-04-01/redhatopenshift"
|
||||
v20220904 "github.com/Azure/ARO-RP/pkg/api/v20220904"
|
||||
mgmtredhatopenshift20220904 "github.com/Azure/ARO-RP/pkg/client/services/redhatopenshift/mgmt/2022-09-04/redhatopenshift"
|
||||
"github.com/Azure/ARO-RP/pkg/deploy/assets"
|
||||
"github.com/Azure/ARO-RP/pkg/deploy/generator"
|
||||
"github.com/Azure/ARO-RP/pkg/env"
|
||||
|
@ -489,19 +489,19 @@ func (c *Cluster) createCluster(ctx context.Context, vnetResourceGroup, clusterN
|
|||
oc.Properties.WorkerProfiles[0].VMSize = api.VMSizeStandardD2sV3
|
||||
}
|
||||
|
||||
ext := api.APIs[v20220401.APIVersion].OpenShiftClusterConverter.ToExternal(&oc)
|
||||
ext := api.APIs[v20220904.APIVersion].OpenShiftClusterConverter.ToExternal(&oc)
|
||||
data, err := json.Marshal(ext)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ocExt := mgmtredhatopenshift20220401.OpenShiftCluster{}
|
||||
ocExt := mgmtredhatopenshift20220904.OpenShiftCluster{}
|
||||
err = json.Unmarshal(data, &ocExt)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return c.openshiftclustersv20220401.CreateOrUpdateAndWait(ctx, vnetResourceGroup, clusterName, ocExt)
|
||||
return c.openshiftclustersv20220904.CreateOrUpdateAndWait(ctx, vnetResourceGroup, clusterName, ocExt)
|
||||
}
|
||||
|
||||
func (c *Cluster) registerSubscription(ctx context.Context) error {
|
||||
|
|
Загрузка…
Ссылка в новой задаче