@@ -38,6 +38,10 @@ import (
38
38
"sigs.k8s.io/controller-runtime/pkg/metrics/server"
39
39
"sigs.k8s.io/controller-runtime/pkg/webhook"
40
40
41
+ infrav1alpha1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha1"
42
+ infrav1alpha5 "sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha5"
43
+ infrav1alpha6 "sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha6"
44
+ infrav1alpha7 "sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha7"
41
45
infrav1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1"
42
46
"sigs.k8s.io/cluster-api-provider-openstack/pkg/webhooks"
43
47
)
@@ -83,9 +87,15 @@ var _ = BeforeSuite(func() {
83
87
})
84
88
85
89
testScheme = scheme .Scheme
86
- Expect (infrav1 .AddToScheme (testScheme )).To (Succeed ())
87
-
88
- //+kubebuilder:scaffold:scheme
90
+ for _ , f := range []func (* runtime.Scheme ) error {
91
+ infrav1alpha1 .AddToScheme ,
92
+ infrav1alpha5 .AddToScheme ,
93
+ infrav1alpha6 .AddToScheme ,
94
+ infrav1alpha7 .AddToScheme ,
95
+ infrav1 .AddToScheme ,
96
+ } {
97
+ Expect (f (testScheme )).To (Succeed ())
98
+ }
89
99
90
100
k8sClient , err = client .New (cfg , client.Options {Scheme : testScheme })
91
101
Expect (err ).NotTo (HaveOccurred ())
0 commit comments