Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
Signed-off-by: rahulii <[email protected]>
  • Loading branch information
rahulii committed Aug 8, 2024
1 parent 654f714 commit cfdc012
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/reconciler/channel/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ func (r *Reconciler) reconcileBackingChannelEventPolicies(ctx context.Context, c
return fmt.Errorf("could not get applying EventPolicies for for channel %s/%s: %w", channel.Namespace, channel.Name, err)
}

// map to keep track of the applying policies for the backing channel
// this is needed to delete outdated policies
// map to keep track of which policies are still applying
// the idea is to maintain a map of applying policies to check which policies are outdated.
// if a backing channel policy is not in the map, it is outdated and should be deleted.
applyingEventPoliciesForChannelMap := make(map[string]string, len(applyingEventPoliciesForChannel))

for _, policy := range applyingEventPoliciesForChannel {
Expand Down

0 comments on commit cfdc012

Please sign in to comment.