Skip to content

Commit

Permalink
Update client.go (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelmaliy authored Jun 26, 2021
1 parent 6d4850f commit f81e85a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/k8s/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ func clusterBrokersToBrokers(clusterBrokers *v1beta1.ClusterServiceBrokerList) b
brokers := make(brokersByUID, len(clusterBrokers.Items))

for _, clusterBroker := range clusterBrokers.Items {
brokers[clusterBroker.ObjectMeta.UID] = &clusterBroker
broker := clusterBroker
brokers[broker.ObjectMeta.UID] = &broker
}

return brokers
Expand All @@ -406,7 +407,8 @@ func namespaceBrokersToBrokers(namespaceBrokers *v1beta1.ServiceBrokerList) brok
brokers := make(brokersByUID, len(namespaceBrokers.Items))

for _, clusterBroker := range namespaceBrokers.Items {
brokers[clusterBroker.ObjectMeta.UID] = &clusterBroker
broker := clusterBroker
brokers[broker.ObjectMeta.UID] = &broker
}

return brokers
Expand Down

0 comments on commit f81e85a

Please sign in to comment.