kubernetes/federation/pkg/federation-controller/cluster
Daniel Dao 6d8f2dddec
fed/clustercontroller: fix race when updating data
updates for ClusterController's maps were made without locking which can lead
to race conditions which were detectede in https://github.com/kubernetes/kubernetes/issues/49958

This change adds a RWMutex to protect the data. We lock and unlock them
whenever the data is accessed to make sure that we dont slow down too much.

Signed-off-by: Daniel Dao <dqminh89@gmail.com>
2017-08-02 10:56:30 +01:00
..
BUILD Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
cluster_client.go run hack/update-all 2017-06-22 11:31:03 -07:00
clustercontroller_test.go fed/clustercontroller: fix race when updating data 2017-08-02 10:56:30 +01:00
clustercontroller.go fed/clustercontroller: fix race when updating data 2017-08-02 10:56:30 +01:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00