File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ import (
3636 "k8s.io/kops/dnsprovider/pkg/dnsprovider"
3737 "k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/google/clouddns"
3838 "k8s.io/kops/pkg/apis/kops"
39- "k8s.io/kops/pkg/mutexes"
4039 "k8s.io/kops/upup/pkg/fi"
4140 "k8s.io/kops/upup/pkg/fi/cloudup/gce/gcemetadata"
4241)
@@ -60,8 +59,8 @@ type GCECloud interface {
6059}
6160
6261// MutexForProjectIAM returns a mutex to prevent local concurrent operations on project IAM.
63- func MutexForProjectIAM (projectID string ) mutexes. LocalMutex {
64- return mutexes . InProcess .Get ("iam/projects/" + projectID )
62+ func MutexForProjectIAM (projectID string ) LocalMutex {
63+ return InProcessMutex .Get ("iam/projects/" + projectID )
6564}
6665
6766type gceCloudImplementation struct {
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ See the License for the specific language governing permissions and
1414limitations under the License.
1515*/
1616
17- package mutexes
17+ package gce
1818
1919import (
2020 "sync"
2121)
2222
23- var InProcess LocalMutexes
23+ var InProcessMutex LocalMutexes
2424
2525// LocalMutexes is a store of named mutexes, used to avoid concurrent local operations.
2626// For example, GCE project IAM mutation uses a read / conditional-write approach,
You can’t perform that action at this time.
0 commit comments