Skip to content

Commit

Permalink
squash: variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Nolan Brubaker <nolan@nbrubaker.com>
  • Loading branch information
nrb committed Jan 23, 2023
1 parent a745b41 commit 5e7b399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/admission/webhook/generic_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ func (p *WebhookDispatcher) getAPIExportCluster(attr admission.Attributes, clust
for _, apiBinding := range objs {
for _, br := range apiBinding.Status.BoundResources {
if br.Group == attr.GetResource().Group && br.Resource == attr.GetResource().Resource {
name := logicalcluster.Name(apiBinding.Status.APIExportClusterName)
export, err := p.getAPIExport(name, apiBinding.Spec.Reference.Export.Name)
clusterName := logicalcluster.Name(apiBinding.Status.APIExportClusterName)
export, err := p.getAPIExport(clusterName, apiBinding.Spec.Reference.Export.Name)
if err != nil {
return "", false, err
}
Expand Down

0 comments on commit 5e7b399

Please sign in to comment.