Skip to content

Commit 5455141

Browse files
committed
main.go: move to v1beta2
1 parent 92245f9 commit 5455141

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

main.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ import (
4343
cgrecord "k8s.io/client-go/tools/record"
4444
"k8s.io/klog/v2"
4545
"k8s.io/utils/ptr"
46-
bootstrapv1beta1 "sigs.k8s.io/cluster-api/api/bootstrap/kubeadm/v1beta1"
47-
clusterv1beta1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
46+
bootstrapv1 "sigs.k8s.io/cluster-api/api/bootstrap/kubeadm/v1beta2"
4847
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
4948
"sigs.k8s.io/cluster-api/controllers/clustercache"
5049
"sigs.k8s.io/cluster-api/controllers/remote"
@@ -80,9 +79,8 @@ func init() {
8079
_ = clientgoscheme.AddToScheme(scheme)
8180
_ = infrav1.AddToScheme(scheme)
8281
_ = infrav1exp.AddToScheme(scheme)
83-
_ = clusterv1beta1.AddToScheme(scheme)
8482
_ = clusterv1.AddToScheme(scheme)
85-
_ = bootstrapv1beta1.AddToScheme(scheme)
83+
_ = bootstrapv1.AddToScheme(scheme)
8684
_ = asoresourcesv1.AddToScheme(scheme)
8785
_ = asocontainerservicev1api20210501.AddToScheme(scheme)
8886
_ = asocontainerservicev1api20230201.AddToScheme(scheme)
@@ -170,7 +168,7 @@ func InitFlags(fs *pflag.FlagSet) {
170168
&watchFilterValue,
171169
"watch-filter",
172170
"",
173-
fmt.Sprintf("Label value that the controller watches to reconcile cluster-api objects. Label key is always %s. If unspecified, the controller watches for all cluster-api objects.", clusterv1beta1.WatchLabel),
171+
fmt.Sprintf("Label value that the controller watches to reconcile cluster-api objects. Label key is always %s. If unspecified, the controller watches for all cluster-api objects.", clusterv1.WatchLabel),
174172
)
175173

176174
fs.StringVar(

0 commit comments

Comments
 (0)