Skip to content

Commit

Permalink
Add alpha3 Resources to Scheme
Browse files Browse the repository at this point in the history
Upgrading from alpha3 to alpha4 is only possible, if the schemes are added.
Otherwise the controller is not able to fetch those resources.
  • Loading branch information
Sven Haardiek committed Sep 8, 2021
1 parent bff2282 commit 9c6b67d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client/config"
"sigs.k8s.io/controller-runtime/pkg/controller"

infrav1old "sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha3"
infrav1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha4"
"sigs.k8s.io/cluster-api-provider-openstack/controllers"
"sigs.k8s.io/cluster-api-provider-openstack/pkg/metrics"
Expand Down Expand Up @@ -71,6 +72,7 @@ func init() {
_ = clientgoscheme.AddToScheme(scheme)
_ = clusterv1.AddToScheme(scheme)
_ = infrav1.AddToScheme(scheme)
_ = infrav1old.AddToScheme(scheme)
// +kubebuilder:scaffold:scheme

metrics.RegisterAPIPrometheusMetrics()
Expand Down

0 comments on commit 9c6b67d

Please sign in to comment.