Serge Bazanski | efdb6e9 | 2020-07-13 17:19:27 +0200 | [diff] [blame^] | 1 | // Copyright 2020 The Monogon Project Authors. |
| 2 | // |
| 3 | // SPDX-License-Identifier: Apache-2.0 |
| 4 | // |
| 5 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | // you may not use this file except in compliance with the License. |
| 7 | // You may obtain a copy of the License at |
| 8 | // |
| 9 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | // |
| 11 | // Unless required by applicable law or agreed to in writing, software |
| 12 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | // See the License for the specific language governing permissions and |
| 15 | // limitations under the License. |
| 16 | |
| 17 | syntax = "proto3"; |
| 18 | option go_package = "git.monogon.dev/source/nexantic.git/core/proto/internal"; |
| 19 | package smalltown.core.proto.internal; |
| 20 | |
| 21 | // Node describes a single node's state in etcd |
| 22 | message Node { |
| 23 | // Individual node service certificate. |
| 24 | bytes certificate = 1; |
| 25 | // Node's individual cluster part of the disk encryption key. |
| 26 | bytes cluster_unlock_key = 2; |
| 27 | // Node address. This is currently an IPv4 address because that is what the |
| 28 | // network service uses, but would also support IPv6. See EnrolmentConfig for a |
| 29 | // discussion on why we use IP addresses rather than some kind of resolver. |
| 30 | string address = 3; |
| 31 | |
| 32 | message Roles { |
| 33 | message ConsensusMember { |
| 34 | string etcd_member_name = 1; |
| 35 | } |
| 36 | ConsensusMember consensus_member = 1; |
| 37 | message KubernetesWorker { |
| 38 | string node_name = 1; |
| 39 | } |
| 40 | KubernetesWorker kubernetes_worker = 2; |
| 41 | } |
| 42 | Roles roles = 4; |
| 43 | } |