Skip to content

Commit 0d12364

Browse files
committed
protobuf cursed circular import
1 parent 83852f0 commit 0d12364

File tree

9 files changed

+4497
-4079
lines changed

9 files changed

+4497
-4079
lines changed

api/client/proto/authservice.pb.go

Lines changed: 1038 additions & 1348 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/client/proto/updaterv2info/updaterv2info.pb.go

Lines changed: 475 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/proto/teleport/legacy/client/proto/authservice.proto

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import "google/protobuf/timestamp.proto";
2222
import "teleport/attestation/v1/attestation.proto";
2323
import "teleport/legacy/client/proto/certs.proto";
2424
import "teleport/legacy/client/proto/event.proto";
25+
import public "teleport/legacy/client/proto/updaterv2info/updaterv2info.proto";
2526
import "teleport/legacy/types/events/events.proto";
2627
import "teleport/legacy/types/types.proto";
2728
import "teleport/legacy/types/webauthn/webauthn.proto";
@@ -2504,36 +2505,6 @@ message UpstreamInventoryHello {
25042505
UpdaterV2Info UpdaterV2Info = 7;
25052506
}
25062507

2507-
message UpdaterV2Info {
2508-
// UpdateGroup is the update group the agent's updater is part of.
2509-
// The autoupdate_agent_rollout resource controls when different groups update.
2510-
// Reporting the update group in the Hello allows us to track the update progress per group.
2511-
// See RFD 184 for more details.
2512-
string UpdateGroup = 1;
2513-
// UpdateUUID is the agent's updater UUID.
2514-
// Each updater has a UUID, this can be used in two cases:
2515-
// - To update individual agents when doing canary updates
2516-
// - To track the lowest non-updated agent to avoid a deadlock when doing a progressive rollout
2517-
bytes UpdateUUID = 2;
2518-
// UpdaterStatus represents any updater-related status information that the Teleport cluster
2519-
// should be aware of. For example, the fact the updater got disabled, the version pinned,
2520-
// or that the updater seems to not be running.
2521-
UpdaterStatus UpdaterStatus = 3;
2522-
}
2523-
2524-
enum UpdaterStatus {
2525-
// UPDATER_STATUS_UNSPECIFIED is the zero value.
2526-
UPDATER_STATUS_UNSPECIFIED = 0;
2527-
// UPDATER_STATUS_OK means that everything looks OK from the agent pov.
2528-
UPDATER_STATUS_OK = 1;
2529-
// UPDATER_STATUS_DISABLED means that automatic updates seem disabled or paused.
2530-
UPDATER_STATUS_DISABLED = 2;
2531-
// UPDATER_STATUS_PINNED means that a specific version is pinned.
2532-
UPDATER_STATUS_PINNED = 3;
2533-
// UPDATER_STATUS_UNREADABLE means that the agent failed to read its update status.
2534-
UPDATER_STATUS_UNREADABLE = 4;
2535-
}
2536-
25372508
// UpstreamInventoryAgentMetadata is the message sent up the inventory control stream containing
25382509
// metadata about the instance.
25392510
message UpstreamInventoryAgentMetadata {
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Copyright 2025 Gravitational, Inc.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package proto;
18+
19+
option go_package = "github.com/gravitational/teleport/api/client/proto/updaterv2info";
20+
21+
message UpdaterV2Info {
22+
// UpdateGroup is the update group the agent's updater is part of.
23+
// The autoupdate_agent_rollout resource controls when different groups update.s
24+
// Reporting the update group in the Hello allows us to track the update progress per group.
25+
// See RFD 184 for more details.
26+
string UpdateGroup = 1;
27+
// UpdateUUID is the agent's updater UUID.
28+
// Each updater has a UUID, this can be used in two cases:
29+
// - To update individual agents when doing canary updates
30+
// - To track the lowest non-updated agent to avoid a deadlock when doing a progressive rollout
31+
bytes UpdateUUID = 2;
32+
// UpdaterStatus represents any updater-related status information that the Teleport cluster
33+
// should be aware of. For example, the fact the updater got disabled, the version pinned,
34+
// or that the updater seems to not be running.
35+
UpdaterStatus UpdaterStatus = 3;
36+
}
37+
38+
enum UpdaterStatus {
39+
// UPDATER_STATUS_UNSPECIFIED is the zero value.
40+
UPDATER_STATUS_UNSPECIFIED = 0;
41+
// UPDATER_STATUS_OK means that everything looks OK from the agent pov.
42+
UPDATER_STATUS_OK = 1;
43+
// UPDATER_STATUS_DISABLED means that automatic updates seem disabled or paused.
44+
UPDATER_STATUS_DISABLED = 2;
45+
// UPDATER_STATUS_PINNED means that a specific version is pinned.
46+
UPDATER_STATUS_PINNED = 3;
47+
// UPDATER_STATUS_UNREADABLE means that the agent failed to read its update status.
48+
UPDATER_STATUS_UNREADABLE = 4;
49+
}

api/proto/teleport/legacy/types/types.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import "google/protobuf/duration.proto";
2121
import "google/protobuf/timestamp.proto";
2222
import "google/protobuf/wrappers.proto";
2323
import "teleport/attestation/v1/attestation.proto";
24+
import "teleport/legacy/client/proto/updaterv2info/updaterv2info.proto";
2425
import "teleport/legacy/types/trusted_device_requirement.proto";
2526
import "teleport/legacy/types/wrappers/wrappers.proto";
2627

@@ -29,6 +30,10 @@ option (gogoproto.goproto_getters_all) = false;
2930
option (gogoproto.marshaler_all) = true;
3031
option (gogoproto.unmarshaler_all) = true;
3132

33+
message Unused {
34+
proto.UpdaterV2Info unused = 1;
35+
}
36+
3237
message KeepAlive {
3338
reserved 3; // LeaseID
3439
reserved "LeaseID";

0 commit comments

Comments
 (0)