Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
fix: adds missing items to scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Apr 8, 2024
1 parent c71c79f commit 2866602
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
capiv1 "sigs.k8s.io/cluster-api/api/v1beta1"
bootstrapv1 "sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1beta1"
controlplanev1 "sigs.k8s.io/cluster-api/controlplane/kubeadm/api/v1beta1"
Expand Down Expand Up @@ -36,6 +37,10 @@ type extraAPIServerCertSANsPatchHandler struct {
func NewPatch(
cl ctrlclient.Reader,
) *extraAPIServerCertSANsPatchHandler {
scheme := runtime.NewScheme()
_ = capiv1.AddToScheme(scheme)
_ = bootstrapv1.AddToScheme(scheme)
_ = controlplanev1.AddToScheme(scheme)
return newExtraAPIServerCertSANsPatchHandler(clusterconfig.MetaVariableName, cl, VariableName)
}

Expand Down

0 comments on commit 2866602

Please sign in to comment.