Skip to content

Commit

Permalink
fix(kcc): don't clear target handler maps to prevent race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-lgy committed Nov 14, 2024
1 parent fb30daf commit 641a225
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/controller/kcc/target/target_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,4 @@ func (k *KatalystCustomConfigTargetHandler) shutDown() {
for _, accessor := range k.targetAccessorMap {
accessor.Stop()
}

// clear all maps
k.targetAccessorMap = make(map[metav1.GroupVersionResource]KatalystCustomConfigTargetAccessor)
k.gvrKatalystCustomConfigMap = make(map[metav1.GroupVersionResource]sets.String)
k.katalystCustomConfigGVRMap = make(map[string]metav1.GroupVersionResource)
}

0 comments on commit 641a225

Please sign in to comment.