|
| 1 | +//go:build e2e |
| 2 | + |
| 3 | +/* |
| 4 | +Copyright 2025 The Kubernetes Authors. |
| 5 | +
|
| 6 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +you may not use this file except in compliance with the License. |
| 8 | +You may obtain a copy of the License at |
| 9 | +
|
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +
|
| 12 | +Unless required by applicable law or agreed to in writing, software |
| 13 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +See the License for the specific language governing permissions and |
| 16 | +limitations under the License. |
| 17 | +*/ |
| 18 | + |
| 19 | +package e2e |
| 20 | + |
| 21 | +import ( |
| 22 | + "context" |
| 23 | + |
| 24 | + . "github.com/onsi/ginkgo/v2" |
| 25 | + capi_e2e "sigs.k8s.io/cluster-api/test/e2e" |
| 26 | + |
| 27 | + infrav1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1" |
| 28 | + "sigs.k8s.io/cluster-api-provider-openstack/test/e2e/shared" |
| 29 | +) |
| 30 | + |
| 31 | +var _ = Describe("Autoscaler on ClusterClass cluster [Autoscaler] [ClusterClass]", func() { |
| 32 | + capi_e2e.AutoscalerSpec(context.TODO(), func() capi_e2e.AutoscalerSpecInput { |
| 33 | + infraAPIGroup := infrav1.GroupName |
| 34 | + autoscalerFlavor := shared.FlavorTopology |
| 35 | + |
| 36 | + return capi_e2e.AutoscalerSpecInput{ |
| 37 | + E2EConfig: e2eCtx.E2EConfig, |
| 38 | + ClusterctlConfigPath: e2eCtx.Environment.ClusterctlConfigPath, |
| 39 | + BootstrapClusterProxy: e2eCtx.Environment.BootstrapClusterProxy, |
| 40 | + ArtifactFolder: e2eCtx.Settings.ArtifactFolder, |
| 41 | + SkipCleanup: false, |
| 42 | + Flavor: &autoscalerFlavor, |
| 43 | + InfrastructureMachineTemplateKind: "openstackmachinetemplates", |
| 44 | + // CAPO does not support machinePools |
| 45 | + InfrastructureMachinePoolTemplateKind: "", |
| 46 | + InfrastructureMachinePoolKind: "", |
| 47 | + InfrastructureAPIGroup: infraAPIGroup, |
| 48 | + AutoscalerVersion: e2eCtx.E2EConfig.MustGetVariable("AUTOSCALER_VERSION"), |
| 49 | + InstallOnManagementCluster: false, |
| 50 | + ScaleToAndFromZero: true, |
| 51 | + PostNamespaceCreated: nil, |
| 52 | + } |
| 53 | + }) |
| 54 | +}) |
0 commit comments