etcd/contrib
Ramsés Morales a7a48168a0 Add golangci-lint config file and `make` target.
Here we add file `.golangci.yaml`, to have a common configuration for
static analysis. If you use the following IDEs/editors, they will read
the file:

- `vim` with vim-go.
- VSCode.

The initial configuration file is based on Kubernetes' HEAD. We removed
a custom kubernetes-linter for custom kubernetes-logging. We also
changed to Golang version 1.17 (etcd's current target Golang version)
from 1.18.

Also, we added a new target to `Makefile`: `lint`. NOTE that auto-fixing
should be part of a later commit, once we are all happy with how the
configuration file is working for us.

As expected, this change fixes two issues found by this `.golangci.yaml`
in file `contrib/lock/client/client.go`:

- Dead code, removed.
- Innefective assignment, removed.

Finally, we are updating `CONTRIBUTING.md` to mention `golangci-lint`.

We will add a GitHub-action to run `golangci-lint` in a future change.

Local testing done:

- `make build`.
- `make test`.

Both are happy.

This is the initial step to fix
https://github.com/etcd-io/etcd/issues/14164.

Signed-off-by: Ramsés Morales <ramses@gmail.com>
2022-07-28 17:55:08 -07:00
..
lock Add golangci-lint config file and `make` target. 2022-07-28 17:55:08 -07:00
mixin etcd-mixin: fix etcdDatabaseQuotaLowSpace alert name 2022-07-20 06:11:13 +02:00
raftexample fix the DATA RACE issue of TestCloseProposerInflight 2022-06-07 18:59:00 +08:00
systemd Merge pull request #12259 from alvistack/master-aio_graceful_reboot 2021-01-31 23:58:12 +01:00
README.md contrib: del systemd/etcd2-backup-coreos in docs 2020-10-14 09:49:56 +08:00

README.md

Contrib

Scripts and files which may be useful but aren't part of the core etcd project.

  • systemd - an example unit file for deploying etcd on systemd-based distributions
  • raftexample - an example distributed key-value store using raft
  • systemd/etcd3-multinode - multi-node cluster setup with systemd