-
Notifications
You must be signed in to change notification settings - Fork 13
/
cluster.platform.pb.go
2934 lines (2611 loc) · 119 KB
/
cluster.platform.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.21.12
// source: cluster.platform.proto
package v1
import (
_ "chainguard.dev/sdk/proto/annotations"
v11 "chainguard.dev/sdk/proto/platform/common/v1"
v1 "chainguard.dev/sdk/proto/platform/iam/v1"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type ClusterDiscoveryRequest_State int32
const (
ClusterDiscoveryRequest_UNKNOWN ClusterDiscoveryRequest_State = 0
ClusterDiscoveryRequest_UNSUPPORTED ClusterDiscoveryRequest_State = 1
ClusterDiscoveryRequest_NEEDS_WORK ClusterDiscoveryRequest_State = 2
ClusterDiscoveryRequest_ELIGIBLE ClusterDiscoveryRequest_State = 3
ClusterDiscoveryRequest_ENROLLED ClusterDiscoveryRequest_State = 4
)
// Enum value maps for ClusterDiscoveryRequest_State.
var (
ClusterDiscoveryRequest_State_name = map[int32]string{
0: "UNKNOWN",
1: "UNSUPPORTED",
2: "NEEDS_WORK",
3: "ELIGIBLE",
4: "ENROLLED",
}
ClusterDiscoveryRequest_State_value = map[string]int32{
"UNKNOWN": 0,
"UNSUPPORTED": 1,
"NEEDS_WORK": 2,
"ELIGIBLE": 3,
"ENROLLED": 4,
}
)
func (x ClusterDiscoveryRequest_State) Enum() *ClusterDiscoveryRequest_State {
p := new(ClusterDiscoveryRequest_State)
*p = x
return p
}
func (x ClusterDiscoveryRequest_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ClusterDiscoveryRequest_State) Descriptor() protoreflect.EnumDescriptor {
return file_cluster_platform_proto_enumTypes[0].Descriptor()
}
func (ClusterDiscoveryRequest_State) Type() protoreflect.EnumType {
return &file_cluster_platform_proto_enumTypes[0]
}
func (x ClusterDiscoveryRequest_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ClusterDiscoveryRequest_State.Descriptor instead.
func (ClusterDiscoveryRequest_State) EnumDescriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{2, 0}
}
type Cluster_NamespaceEnforcementMode int32
const (
Cluster_OptOut Cluster_NamespaceEnforcementMode = 0
Cluster_OptIn Cluster_NamespaceEnforcementMode = 1
)
// Enum value maps for Cluster_NamespaceEnforcementMode.
var (
Cluster_NamespaceEnforcementMode_name = map[int32]string{
0: "OptOut",
1: "OptIn",
}
Cluster_NamespaceEnforcementMode_value = map[string]int32{
"OptOut": 0,
"OptIn": 1,
}
)
func (x Cluster_NamespaceEnforcementMode) Enum() *Cluster_NamespaceEnforcementMode {
p := new(Cluster_NamespaceEnforcementMode)
*p = x
return p
}
func (x Cluster_NamespaceEnforcementMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_NamespaceEnforcementMode) Descriptor() protoreflect.EnumDescriptor {
return file_cluster_platform_proto_enumTypes[1].Descriptor()
}
func (Cluster_NamespaceEnforcementMode) Type() protoreflect.EnumType {
return &file_cluster_platform_proto_enumTypes[1]
}
func (x Cluster_NamespaceEnforcementMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_NamespaceEnforcementMode.Descriptor instead.
func (Cluster_NamespaceEnforcementMode) EnumDescriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{4, 0}
}
type Cluster_Provider int32
const (
Cluster_UNKNOWN Cluster_Provider = 0
Cluster_GKE Cluster_Provider = 1
Cluster_EKS Cluster_Provider = 2
// GCP Services (10+)
Cluster_CLOUD_RUN Cluster_Provider = 10
// AWS Services (20+)
Cluster_ECS Cluster_Provider = 20
Cluster_APP_RUNNER Cluster_Provider = 21
// For testing.
Cluster_KIND Cluster_Provider = 100
)
// Enum value maps for Cluster_Provider.
var (
Cluster_Provider_name = map[int32]string{
0: "UNKNOWN",
1: "GKE",
2: "EKS",
10: "CLOUD_RUN",
20: "ECS",
21: "APP_RUNNER",
100: "KIND",
}
Cluster_Provider_value = map[string]int32{
"UNKNOWN": 0,
"GKE": 1,
"EKS": 2,
"CLOUD_RUN": 10,
"ECS": 20,
"APP_RUNNER": 21,
"KIND": 100,
}
)
func (x Cluster_Provider) Enum() *Cluster_Provider {
p := new(Cluster_Provider)
*p = x
return p
}
func (x Cluster_Provider) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_Provider) Descriptor() protoreflect.EnumDescriptor {
return file_cluster_platform_proto_enumTypes[2].Descriptor()
}
func (Cluster_Provider) Type() protoreflect.EnumType {
return &file_cluster_platform_proto_enumTypes[2]
}
func (x Cluster_Provider) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_Provider.Descriptor instead.
func (Cluster_Provider) EnumDescriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{4, 1}
}
type Cluster_Location int32
const (
Cluster_AUTO Cluster_Location = 0
// Use 1xx for US
Cluster_US_EAST Cluster_Location = 101
Cluster_US_CENTRAL Cluster_Location = 102
Cluster_US_WEST Cluster_Location = 103
)
// Enum value maps for Cluster_Location.
var (
Cluster_Location_name = map[int32]string{
0: "AUTO",
101: "US_EAST",
102: "US_CENTRAL",
103: "US_WEST",
}
Cluster_Location_value = map[string]int32{
"AUTO": 0,
"US_EAST": 101,
"US_CENTRAL": 102,
"US_WEST": 103,
}
)
func (x Cluster_Location) Enum() *Cluster_Location {
p := new(Cluster_Location)
*p = x
return p
}
func (x Cluster_Location) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_Location) Descriptor() protoreflect.EnumDescriptor {
return file_cluster_platform_proto_enumTypes[3].Descriptor()
}
func (Cluster_Location) Type() protoreflect.EnumType {
return &file_cluster_platform_proto_enumTypes[3]
}
func (x Cluster_Location) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_Location.Descriptor instead.
func (Cluster_Location) EnumDescriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{4, 2}
}
type Cluster_Status_State int32
const (
Cluster_Status_UNKNOWN Cluster_Status_State = 0
Cluster_Status_Ready Cluster_Status_State = 1
Cluster_Status_NotReady Cluster_Status_State = 2
)
// Enum value maps for Cluster_Status_State.
var (
Cluster_Status_State_name = map[int32]string{
0: "UNKNOWN",
1: "Ready",
2: "NotReady",
}
Cluster_Status_State_value = map[string]int32{
"UNKNOWN": 0,
"Ready": 1,
"NotReady": 2,
}
)
func (x Cluster_Status_State) Enum() *Cluster_Status_State {
p := new(Cluster_Status_State)
*p = x
return p
}
func (x Cluster_Status_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_Status_State) Descriptor() protoreflect.EnumDescriptor {
return file_cluster_platform_proto_enumTypes[4].Descriptor()
}
func (Cluster_Status_State) Type() protoreflect.EnumType {
return &file_cluster_platform_proto_enumTypes[4]
}
func (x Cluster_Status_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_Status_State.Descriptor instead.
func (Cluster_Status_State) EnumDescriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{4, 4, 0}
}
type ClusterConfigRequest_NamespaceEnforcementMode int32
const (
ClusterConfigRequest_OptOut ClusterConfigRequest_NamespaceEnforcementMode = 0
ClusterConfigRequest_OptIn ClusterConfigRequest_NamespaceEnforcementMode = 1
)
// Enum value maps for ClusterConfigRequest_NamespaceEnforcementMode.
var (
ClusterConfigRequest_NamespaceEnforcementMode_name = map[int32]string{
0: "OptOut",
1: "OptIn",
}
ClusterConfigRequest_NamespaceEnforcementMode_value = map[string]int32{
"OptOut": 0,
"OptIn": 1,
}
)
func (x ClusterConfigRequest_NamespaceEnforcementMode) Enum() *ClusterConfigRequest_NamespaceEnforcementMode {
p := new(ClusterConfigRequest_NamespaceEnforcementMode)
*p = x
return p
}
func (x ClusterConfigRequest_NamespaceEnforcementMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ClusterConfigRequest_NamespaceEnforcementMode) Descriptor() protoreflect.EnumDescriptor {
return file_cluster_platform_proto_enumTypes[5].Descriptor()
}
func (ClusterConfigRequest_NamespaceEnforcementMode) Type() protoreflect.EnumType {
return &file_cluster_platform_proto_enumTypes[5]
}
func (x ClusterConfigRequest_NamespaceEnforcementMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ClusterConfigRequest_NamespaceEnforcementMode.Descriptor instead.
func (ClusterConfigRequest_NamespaceEnforcementMode) EnumDescriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{10, 0}
}
type CreateClusterRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// parent_id, The Group under which this Cluster resides.
ParentId string `protobuf:"bytes,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
// Cluster is the definition of the managed cluster to create.
Cluster *Cluster `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
}
func (x *CreateClusterRequest) Reset() {
*x = CreateClusterRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cluster_platform_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateClusterRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateClusterRequest) ProtoMessage() {}
func (x *CreateClusterRequest) ProtoReflect() protoreflect.Message {
mi := &file_cluster_platform_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateClusterRequest.ProtoReflect.Descriptor instead.
func (*CreateClusterRequest) Descriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{0}
}
func (x *CreateClusterRequest) GetParentId() string {
if x != nil {
return x.ParentId
}
return ""
}
func (x *CreateClusterRequest) GetCluster() *Cluster {
if x != nil {
return x.Cluster
}
return nil
}
type DeleteClusterRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// id is the exact UIDP of the record.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *DeleteClusterRequest) Reset() {
*x = DeleteClusterRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cluster_platform_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteClusterRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteClusterRequest) ProtoMessage() {}
func (x *DeleteClusterRequest) ProtoReflect() protoreflect.Message {
mi := &file_cluster_platform_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteClusterRequest.ProtoReflect.Descriptor instead.
func (*DeleteClusterRequest) Descriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{1}
}
func (x *DeleteClusterRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type ClusterDiscoveryRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// id is the exact UIDP of the group to impersonate to search for clusters.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// providers is the list of providers to perform discovery on.
Providers []Cluster_Provider `protobuf:"varint,2,rep,packed,name=providers,proto3,enum=chainguard.platform.tenant.Cluster_Provider" json:"providers,omitempty"`
// profiles includes the set of profiles to perform discovery for,
// which may impact eligibility (some profiles may not be supported
// on some providers).
Profiles []string `protobuf:"bytes,3,rep,name=profiles,proto3" json:"profiles,omitempty"`
// states is a collection of the states to return, or all if
// none are specified.
States []ClusterDiscoveryRequest_State `protobuf:"varint,4,rep,packed,name=states,proto3,enum=chainguard.platform.tenant.ClusterDiscoveryRequest_State" json:"states,omitempty"`
}
func (x *ClusterDiscoveryRequest) Reset() {
*x = ClusterDiscoveryRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cluster_platform_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterDiscoveryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterDiscoveryRequest) ProtoMessage() {}
func (x *ClusterDiscoveryRequest) ProtoReflect() protoreflect.Message {
mi := &file_cluster_platform_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClusterDiscoveryRequest.ProtoReflect.Descriptor instead.
func (*ClusterDiscoveryRequest) Descriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{2}
}
func (x *ClusterDiscoveryRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *ClusterDiscoveryRequest) GetProviders() []Cluster_Provider {
if x != nil {
return x.Providers
}
return nil
}
func (x *ClusterDiscoveryRequest) GetProfiles() []string {
if x != nil {
return x.Profiles
}
return nil
}
func (x *ClusterDiscoveryRequest) GetStates() []ClusterDiscoveryRequest_State {
if x != nil {
return x.States
}
return nil
}
type ClusterDiscoveryResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Results []*ClusterDiscoveryResponse_Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
}
func (x *ClusterDiscoveryResponse) Reset() {
*x = ClusterDiscoveryResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cluster_platform_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterDiscoveryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterDiscoveryResponse) ProtoMessage() {}
func (x *ClusterDiscoveryResponse) ProtoReflect() protoreflect.Message {
mi := &file_cluster_platform_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClusterDiscoveryResponse.ProtoReflect.Descriptor instead.
func (*ClusterDiscoveryResponse) Descriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{3}
}
func (x *ClusterDiscoveryResponse) GetResults() []*ClusterDiscoveryResponse_Result {
if x != nil {
return x.Results
}
return nil
}
type Cluster struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// id, The Cluster UIDP under which this Cluster resides.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// remote_id is the remote ID of this cluster.
RemoteId string `protobuf:"bytes,2,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
// issuer is the identity issuer tied to this cluster.
Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
// registered tracks the timestamp at which this cluster was registered.
Registered *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=registered,proto3" json:"registered,omitempty"`
// last_seen tracks the timestamp at which this cluster was last seen.
LastSeen *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
// version holds the Kubernetes version last reported by the cluster.
Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
// agent_version holds the version of the Chainguard agent last reported by the cluster.
AgentVersion string `protobuf:"bytes,7,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
// activity is a mapping from "Source" URLs to an activity record summarizing
// recent activity from this source.
Activity map[string]*ClusterActivity `protobuf:"bytes,8,rep,name=activity,proto3" json:"activity,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// name of the cluster.
Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"`
// a short description of this cluster.
Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"`
// group the cluster resides in
Group *v1.Group `protobuf:"bytes,99,opt,name=group,proto3" json:"group,omitempty"`
// managed_name is the unique name we have given to this cluster's managed agent.
// This field is output-only, and is populated only when this cluster is "managed".
ManagedName string `protobuf:"bytes,100,opt,name=managed_name,json=managedName,proto3" json:"managed_name,omitempty"`
// provider holds the flavor of cluster provider, which is used to determine how we
// authenticate with the cluster.
Provider Cluster_Provider `protobuf:"varint,101,opt,name=provider,proto3,enum=chainguard.platform.tenant.Cluster_Provider" json:"provider,omitempty"`
// affinity specifies a scheduling preference for where to run the managed agent.
// Other factors, such as the provider may be taken into account when choosing a
// host cluster.
Affinity Cluster_Location `protobuf:"varint,105,opt,name=affinity,proto3,enum=chainguard.platform.tenant.Cluster_Location" json:"affinity,omitempty"`
// info contains the cluster information from the kubeconfig context.
Info *Cluster_Info `protobuf:"bytes,102,opt,name=info,proto3" json:"info,omitempty"`
// auth_info holds authentication details for connecting to KinD in test scenarios.
AuthInfo *Cluster_AuthInfo `protobuf:"bytes,104,opt,name=auth_info,json=authInfo,proto3" json:"auth_info,omitempty"`
// status contains the managed cluster's status.
Status *Cluster_Status `protobuf:"bytes,103,opt,name=status,proto3" json:"status,omitempty"`
// host_cluster surfaces the opaque identifier for the Chainguard cluster hosting
// this agent.
HostCluster string `protobuf:"bytes,106,opt,name=host_cluster,json=hostCluster,proto3" json:"host_cluster,omitempty"`
// profiles specifies the root set of tenant configurations that we want to run
// on this cluster.
Profiles []string `protobuf:"bytes,107,rep,name=profiles,proto3" json:"profiles,omitempty"`
// EnforcerOptions contains additional Enforcer configuration settings.
// +optional
EnforcerOptions *Cluster_EnforcerOptions `protobuf:"bytes,108,opt,name=enforcer_options,json=enforcerOptions,proto3,oneof" json:"enforcer_options,omitempty"`
}
func (x *Cluster) Reset() {
*x = Cluster{}
if protoimpl.UnsafeEnabled {
mi := &file_cluster_platform_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Cluster) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Cluster) ProtoMessage() {}
func (x *Cluster) ProtoReflect() protoreflect.Message {
mi := &file_cluster_platform_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Cluster.ProtoReflect.Descriptor instead.
func (*Cluster) Descriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{4}
}
func (x *Cluster) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Cluster) GetRemoteId() string {
if x != nil {
return x.RemoteId
}
return ""
}
func (x *Cluster) GetIssuer() string {
if x != nil {
return x.Issuer
}
return ""
}
func (x *Cluster) GetRegistered() *timestamppb.Timestamp {
if x != nil {
return x.Registered
}
return nil
}
func (x *Cluster) GetLastSeen() *timestamppb.Timestamp {
if x != nil {
return x.LastSeen
}
return nil
}
func (x *Cluster) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *Cluster) GetAgentVersion() string {
if x != nil {
return x.AgentVersion
}
return ""
}
func (x *Cluster) GetActivity() map[string]*ClusterActivity {
if x != nil {
return x.Activity
}
return nil
}
func (x *Cluster) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Cluster) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Cluster) GetGroup() *v1.Group {
if x != nil {
return x.Group
}
return nil
}
func (x *Cluster) GetManagedName() string {
if x != nil {
return x.ManagedName
}
return ""
}
func (x *Cluster) GetProvider() Cluster_Provider {
if x != nil {
return x.Provider
}
return Cluster_UNKNOWN
}
func (x *Cluster) GetAffinity() Cluster_Location {
if x != nil {
return x.Affinity
}
return Cluster_AUTO
}
func (x *Cluster) GetInfo() *Cluster_Info {
if x != nil {
return x.Info
}
return nil
}
func (x *Cluster) GetAuthInfo() *Cluster_AuthInfo {
if x != nil {
return x.AuthInfo
}
return nil
}
func (x *Cluster) GetStatus() *Cluster_Status {
if x != nil {
return x.Status
}
return nil
}
func (x *Cluster) GetHostCluster() string {
if x != nil {
return x.HostCluster
}
return ""
}
func (x *Cluster) GetProfiles() []string {
if x != nil {
return x.Profiles
}
return nil
}
func (x *Cluster) GetEnforcerOptions() *Cluster_EnforcerOptions {
if x != nil {
return x.EnforcerOptions
}
return nil
}
type ClusterActivity struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// profile is the Chainguard profile to which the source of this activity belongs.
Profile string `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"`
// namespace is the namespace in which the source of this cluster activity lives.
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
// controller_name is the name of the Controller CRD which was the source of this
// activity on the tenant cluster.
ControllerName string `protobuf:"bytes,2,opt,name=controller_name,json=controllerName,proto3" json:"controller_name,omitempty"`
// webhook_name is the name of the Webhook CRD which was the source of this
// activity on the tenant cluster.
WebhookName string `protobuf:"bytes,3,opt,name=webhook_name,json=webhookName,proto3" json:"webhook_name,omitempty"`
// spec_hash is the hash of the Controller or Webhook CRD's spec, which forms a
// loose form of versioning.
SpecHash string `protobuf:"bytes,4,opt,name=spec_hash,json=specHash,proto3" json:"spec_hash,omitempty"`
// last_seen tracks the timestamp at which this source was last active.
LastSeen *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
}
func (x *ClusterActivity) Reset() {
*x = ClusterActivity{}
if protoimpl.UnsafeEnabled {
mi := &file_cluster_platform_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterActivity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterActivity) ProtoMessage() {}
func (x *ClusterActivity) ProtoReflect() protoreflect.Message {
mi := &file_cluster_platform_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClusterActivity.ProtoReflect.Descriptor instead.
func (*ClusterActivity) Descriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{5}
}
func (x *ClusterActivity) GetProfile() string {
if x != nil {
return x.Profile
}
return ""
}
func (x *ClusterActivity) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *ClusterActivity) GetControllerName() string {
if x != nil {
return x.ControllerName
}
return ""
}
func (x *ClusterActivity) GetWebhookName() string {
if x != nil {
return x.WebhookName
}
return ""
}
func (x *ClusterActivity) GetSpecHash() string {
if x != nil {
return x.SpecHash
}
return ""
}
func (x *ClusterActivity) GetLastSeen() *timestamppb.Timestamp {
if x != nil {
return x.LastSeen
}
return nil
}
type ClusterList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Items []*Cluster `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
}
func (x *ClusterList) Reset() {
*x = ClusterList{}
if protoimpl.UnsafeEnabled {
mi := &file_cluster_platform_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterList) ProtoMessage() {}
func (x *ClusterList) ProtoReflect() protoreflect.Message {
mi := &file_cluster_platform_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClusterList.ProtoReflect.Descriptor instead.
func (*ClusterList) Descriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{6}
}
func (x *ClusterList) GetItems() []*Cluster {
if x != nil {
return x.Items
}
return nil
}
type ClusterFilter struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// id is the exact UID of the record.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// active_since is the timestamp after which returned clusters should have been active.
// This applies to both cluster registration and when it was "last seen".
ActiveSince *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
// uidp filers records based on their position in the group hierarchy.
Uidp *v11.UIDPFilter `protobuf:"bytes,3,opt,name=uidp,proto3" json:"uidp,omitempty"`
// remote_id is the remote ID of this cluster.
RemoteId string `protobuf:"bytes,4,opt,name=remote_id,json=remoteId,proto3" json:"remote_id,omitempty"`
// name is the exact name of the cluster.
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *ClusterFilter) Reset() {
*x = ClusterFilter{}
if protoimpl.UnsafeEnabled {
mi := &file_cluster_platform_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClusterFilter) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClusterFilter) ProtoMessage() {}
func (x *ClusterFilter) ProtoReflect() protoreflect.Message {
mi := &file_cluster_platform_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClusterFilter.ProtoReflect.Descriptor instead.
func (*ClusterFilter) Descriptor() ([]byte, []int) {
return file_cluster_platform_proto_rawDescGZIP(), []int{7}
}
func (x *ClusterFilter) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *ClusterFilter) GetActiveSince() *timestamppb.Timestamp {
if x != nil {