Skip to content

Commit

Permalink
Use ocmClientMux in GetOCMClusterID
Browse files Browse the repository at this point in the history
  • Loading branch information
kostola committed May 3, 2023
1 parent 22acb89 commit 48f66b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/controllers/addon/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ func (r *AddonReconciler) InjectOCMClient(ctx context.Context, c *ocm.Client) er
}

func (r *AddonReconciler) GetOCMClusterID() string {
r.ocmClientMux.RLock()
defer r.ocmClientMux.RUnlock()

if r.ocmClient == nil {
return ""
}
Expand Down

0 comments on commit 48f66b7

Please sign in to comment.