open-nomad/command/agent/testdata
Michael Schurter 7494a0c4fd core: remove all traces of unused protocol version
Nomad inherited protocol version numbering configuration from Consul and
Serf, but unlike those projects Nomad has never used it. Nomad's
`protocol_version` has always been `1`.

While the code is effectively unused and therefore poses no runtime
risks to leave, I felt like removing it was best because:

1. Nomad's RPC subsystem has been able to evolve extensively without
   needing to increment the version number.
2. Nomad's HTTP API has evolved extensively without increment
   `API{Major,Minor}Version`. If we want to version the HTTP API in the
   future, I doubt this is the mechanism we would choose.
3. The presence of the `server.protocol_version` configuration
   parameter is confusing since `server.raft_protocol` *is* an important
   parameter for operators to consider. Even more confusing is that
   there is a distinct Serf protocol version which is included in `nomad
   server members` output under the heading `Protocol`. `raft_protocol`
   is the *only* protocol version relevant to Nomad developers and
   operators. The other protocol versions are either deadcode or have
   never changed (Serf).
4. If we were to need to version the RPC, HTTP API, or Serf protocols, I
   don't think these configuration parameters and variables are the best
   choice. If we come to that point we should choose a versioning scheme
   based on the use case and modern best practices -- not this 6+ year
   old dead code.
2022-02-18 16:12:36 -08:00
..
sample1 update audit examples to an endpoint that is audited 2020-03-30 10:03:11 -04:00
basic.hcl core: remove all traces of unused protocol version 2022-02-18 16:12:36 -08:00
basic.json core: remove all traces of unused protocol version 2022-02-18 16:12:36 -08:00
config-slices-alt.json config parse_test check for string coercion in client.meta 2019-06-10 13:12:38 -04:00
config-slices.hcl config_parse_test test direct hcl parsing 2019-04-30 10:29:14 -04:00
config-slices.json config parse_test check for string coercion in client.meta 2019-06-10 13:12:38 -04:00
non-optional.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
non-optional.json config_parse_test test direct hcl parsing 2019-04-30 10:29:14 -04:00
obj-len-one-server.json config_parse_test test direct hcl parsing 2019-04-30 10:29:14 -04:00
obj-len-one.hcl use allow/deny instead of the colored alternatives (#9019) 2020-10-12 08:47:05 -04:00
obj-len-one.json use allow/deny instead of the colored alternatives (#9019) 2020-10-12 08:47:05 -04:00
plugin.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
plugin.json Address review comments 2019-03-29 08:57:49 -05:00
sample0.json update audit examples to an endpoint that is audited 2020-03-30 10:03:11 -04:00