Skip to content

Commit

Permalink
fix panic in getSecret (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilia601 authored Aug 27, 2024
1 parent 930c62d commit df7c3e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/machine_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -607,12 +607,12 @@ func (c *controller) getSecretData(machineClassName string, secretRefs ...*v1.Se
continue
}

secretRef, err := c.getSecret(secretRef, machineClassName)
secret, err := c.getSecret(secretRef, machineClassName)
if err != nil {
klog.V(2).Infof("Secret reference %s/%s not found", secretRef.Namespace, secretRef.Name)
return nil, err
}
secretData = mergeDataMaps(secretData, secretRef.Data)
secretData = mergeDataMaps(secretData, secret.Data)
}

return secretData, nil
Expand Down

0 comments on commit df7c3e1

Please sign in to comment.