metropolis/proto/common: factor out common messages
In preparation for moving some proto structures from this proto package
(eg. Node etcd serialization) into //metropolis/node/core/curator, we
fully specify and document all elements of the Node/Cluster FSM states
and a shared NodeRoles structure.
These will be shared by both serialized etcd state in the curator, the
curator API and possibly other APIs in the future. They are critical to
the Metropolis concept, so we aim to have them deduplicated across all
uses, and that's why they're supposed to end up in
//metropolis/proto/common.
These effectively temporarily duplicate definitions from
//metropolis/proto/private, but these will be removed in an upcoming CL.
Testing plan: no-op, in preparation for use in a further CL.
Change-Id: I97087c7348a90e2dbe4cef03f7f55c7b58823ff1
Reviewed-on: https://review.monogon.dev/c/monogon/+/161
Reviewed-by: Lorenz Brun <lorenz@nexantic.com>
diff --git a/metropolis/proto/private/private.proto b/metropolis/proto/private/private.proto
index 9bae680..a09b0d3 100644
--- a/metropolis/proto/private/private.proto
+++ b/metropolis/proto/private/private.proto
@@ -19,6 +19,7 @@
package metropolis.proto.private;
// Node describes a single node's state in etcd
+// DEPRECATED: this will be moved to //metropolis/node/curator.
message Node {
// Node's public key..
bytes public_key = 1;