Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Fix the cluster type
Browse files Browse the repository at this point in the history
  • Loading branch information
lubronzhan committed Sep 13, 2022
1 parent e736d07 commit a685a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/controllers/cpi/vspherecpiconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (r *VSphereCPIConfigReconciler) SetupWithManager(_ context.Context, mgr ctr
WithOptions(options).
WithEventFilter(predicates.ConfigOfKindWithoutAnnotation(constants.TKGAnnotationTemplateConfig, constants.VSphereCPIConfigKind, r.Config.SystemNamespace, r.Log)).
Watches(
&source.Kind{Type: &clusterapiv1beta1.Cluster{}},
&source.Kind{Type: &capvvmwarev1beta1.VSphereCluster{}},
handler.EnqueueRequestsFromMapFunc(r.VSphereClusterToVSphereCPIConfig),
).
Complete(r)
Expand Down

0 comments on commit a685a40

Please # to comment.