Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for concurrent map iteration and map write #197

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixed the linting errors
Signed-off-by: Shriram Sharma <shriram_sharma@intuit.com>
shriramsharma committed Mar 14, 2022
commit 50e7679add84f20b374548cdb44a9d4191bcc7a0
4 changes: 2 additions & 2 deletions admiral/pkg/clusters/handler.go
Original file line number Diff line number Diff line change
@@ -228,7 +228,7 @@ func handleDestinationRuleEvent(obj *v1alpha3.DestinationRule, dh *DestinationRu

dependentClusters := r.AdmiralCache.CnameDependentClusterCache.Get(destinationRule.Host).Copy()

if dependentClusters != nil && len(dependentClusters) > 0 {
if len(dependentClusters) > 0 {

log.Infof(LogFormat, "Event", "DestinationRule", obj.Name, clusterId, "Processing")

@@ -435,7 +435,7 @@ func handleVirtualServiceEvent(obj *v1alpha3.VirtualService, vh *VirtualServiceH

dependentClusters := r.AdmiralCache.CnameDependentClusterCache.Get(virtualService.Hosts[0]).Copy()

if dependentClusters != nil && len(dependentClusters) > 0 {
if len(dependentClusters) > 0 {

for _, dependentCluster := range dependentClusters {