mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Automatic merge from submit-queue (batch tested with PRs 52630, 53110, 53136, 53075). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. federation/pkg/federation-controller/util: fix swallowed errors **What this PR does / why we need it**: The re-declaration of `err` inside the `if` block causes it to be lost before the check on line 93, even though it is reassigned on lines 95 and 90. By declaring the secret variable on line 71 I was able to ditch the `:=` assignment on line 72, meaning we can keep the `err` variable previously defined before the block on line 47. ```release-note NONE ``` |
||
|---|---|---|
| .. | ||
| clusterselector | ||
| deletionhelper | ||
| eventsink | ||
| finalizers | ||
| hpa | ||
| planner | ||
| podanalyzer | ||
| replicapreferences | ||
| test | ||
| backoff.go | ||
| BUILD | ||
| cluster_util.go | ||
| configmap.go | ||
| delaying_deliverer.go | ||
| delaying_deliverer_test.go | ||
| deployment.go | ||
| deployment_test.go | ||
| federated_informer.go | ||
| federated_informer_test.go | ||
| federated_updater.go | ||
| federated_updater_test.go | ||
| handlers.go | ||
| handlers_test.go | ||
| meta.go | ||
| meta_test.go | ||
| secret.go | ||