Skip to content

Commit

Permalink
Register v1beta2 scheme
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Mazzotti <[email protected]>
  • Loading branch information
anmazzotti committed Jan 9, 2024
1 parent 5b21436 commit 32af133
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controlplane/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log/zap"

bootstrapv1beta1 "github.com/cluster-api-provider-k3s/cluster-api-k3s/bootstrap/api/v1beta1"
bootstrapv1 "github.com/cluster-api-provider-k3s/cluster-api-k3s/bootstrap/api/v1beta2"
controlplanev1beta1 "github.com/cluster-api-provider-k3s/cluster-api-k3s/controlplane/api/v1beta1"
controlplanev1 "github.com/cluster-api-provider-k3s/cluster-api-k3s/controlplane/api/v1beta2"
"github.com/cluster-api-provider-k3s/cluster-api-k3s/controlplane/controllers"
)

Expand All @@ -44,8 +46,10 @@ func init() {
_ = clusterv1beta1.AddToScheme(scheme)
_ = expv1beta1.AddToScheme(scheme)
_ = bootstrapv1beta1.AddToScheme(scheme)
_ = bootstrapv1.AddToScheme(scheme)

_ = controlplanev1beta1.AddToScheme(scheme)
_ = controlplanev1.AddToScheme(scheme)
// +kubebuilder:scaffold:scheme
}

Expand Down

0 comments on commit 32af133

Please sign in to comment.