Skip to content

Commit

Permalink
Fix temporalschedule indexed field
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSendible authored and Yousuf Jawwad committed Jul 28, 2024
1 parent 3a09c6e commit 91d1dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/temporalschedule_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func (r *TemporalScheduleReconciler) namespaceToSchedulesMapfunc(ctx context.Con

// SetupWithManager sets up the controller with the Manager.
func (r *TemporalScheduleReconciler) SetupWithManager(mgr ctrl.Manager) error {
if err := mgr.GetFieldIndexer().IndexField(context.Background(), &v1beta1.TemporalSchedule{}, clusterRefField, func(rawObj client.Object) []string {
if err := mgr.GetFieldIndexer().IndexField(context.Background(), &v1beta1.TemporalSchedule{}, namespaceRefField, func(rawObj client.Object) []string {
temporalSchedule := rawObj.(*v1beta1.TemporalSchedule)
if temporalSchedule.Spec.NamespaceRef.Name == "" {
return nil
Expand Down

0 comments on commit 91d1dc4

Please sign in to comment.