-
Notifications
You must be signed in to change notification settings - Fork 881
Expand file tree
/
Copy pathapp_definition.pb.go
More file actions
2888 lines (2571 loc) · 106 KB
/
Copy pathapp_definition.pb.go
File metadata and controls
2888 lines (2571 loc) · 106 KB
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.30.0
// protoc (unknown)
// source: flyteidl2/app/app_definition.proto
package app
import (
_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
common "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/common"
core "github.com/flyteorg/flyte/v2/gen/go/flyteidl2/core"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
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)
)
// Enum for deployment status of the app.
type Status_DeploymentStatus int32
const (
// Unspecified deployment status.
Status_DEPLOYMENT_STATUS_UNSPECIFIED Status_DeploymentStatus = 0
// Deployment is enabled but hasn't been assigned to a cluster yet.
Status_DEPLOYMENT_STATUS_UNASSIGNED Status_DeploymentStatus = 1
// Deployment is assigned to a cluster but hasn't been acknowledged yet.
Status_DEPLOYMENT_STATUS_ASSIGNED Status_DeploymentStatus = 2
// Deployment is picked up by a cluster but is awaiting deployment.
Status_DEPLOYMENT_STATUS_PENDING Status_DeploymentStatus = 3
// Deployment is disabled.
Status_DEPLOYMENT_STATUS_STOPPED Status_DeploymentStatus = 4
// Deployment is completed. Please use DEPLOYMENT_STATUS_ACTIVE instead.
//
// Deprecated: Marked as deprecated in flyteidl2/app/app_definition.proto.
Status_DEPLOYMENT_STATUS_STARTED Status_DeploymentStatus = 5
// Deployment has failed.
Status_DEPLOYMENT_STATUS_FAILED Status_DeploymentStatus = 6
// Deployment is completed.
Status_DEPLOYMENT_STATUS_ACTIVE Status_DeploymentStatus = 7
// Triggered in response to desired app replicas > actual app replicas
Status_DEPLOYMENT_STATUS_SCALING_UP Status_DeploymentStatus = 8
// Triggered in response to desired app replicas < actual app replicas
Status_DEPLOYMENT_STATUS_SCALING_DOWN Status_DeploymentStatus = 9
// Triggered in response to the latest app spec changing
Status_DEPLOYMENT_STATUS_DEPLOYING Status_DeploymentStatus = 10
)
// Enum value maps for Status_DeploymentStatus.
var (
Status_DeploymentStatus_name = map[int32]string{
0: "DEPLOYMENT_STATUS_UNSPECIFIED",
1: "DEPLOYMENT_STATUS_UNASSIGNED",
2: "DEPLOYMENT_STATUS_ASSIGNED",
3: "DEPLOYMENT_STATUS_PENDING",
4: "DEPLOYMENT_STATUS_STOPPED",
5: "DEPLOYMENT_STATUS_STARTED",
6: "DEPLOYMENT_STATUS_FAILED",
7: "DEPLOYMENT_STATUS_ACTIVE",
8: "DEPLOYMENT_STATUS_SCALING_UP",
9: "DEPLOYMENT_STATUS_SCALING_DOWN",
10: "DEPLOYMENT_STATUS_DEPLOYING",
}
Status_DeploymentStatus_value = map[string]int32{
"DEPLOYMENT_STATUS_UNSPECIFIED": 0,
"DEPLOYMENT_STATUS_UNASSIGNED": 1,
"DEPLOYMENT_STATUS_ASSIGNED": 2,
"DEPLOYMENT_STATUS_PENDING": 3,
"DEPLOYMENT_STATUS_STOPPED": 4,
"DEPLOYMENT_STATUS_STARTED": 5,
"DEPLOYMENT_STATUS_FAILED": 6,
"DEPLOYMENT_STATUS_ACTIVE": 7,
"DEPLOYMENT_STATUS_SCALING_UP": 8,
"DEPLOYMENT_STATUS_SCALING_DOWN": 9,
"DEPLOYMENT_STATUS_DEPLOYING": 10,
}
)
func (x Status_DeploymentStatus) Enum() *Status_DeploymentStatus {
p := new(Status_DeploymentStatus)
*p = x
return p
}
func (x Status_DeploymentStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Status_DeploymentStatus) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl2_app_app_definition_proto_enumTypes[0].Descriptor()
}
func (Status_DeploymentStatus) Type() protoreflect.EnumType {
return &file_flyteidl2_app_app_definition_proto_enumTypes[0]
}
func (x Status_DeploymentStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Status_DeploymentStatus.Descriptor instead.
func (Status_DeploymentStatus) EnumDescriptor() ([]byte, []int) {
return file_flyteidl2_app_app_definition_proto_rawDescGZIP(), []int{5, 0}
}
// Enum for deployment status of the app.
type Spec_DesiredState int32
const (
// Unspecified state
Spec_DESIRED_STATE_UNSPECIFIED Spec_DesiredState = 0
// Deployment is disabled.
Spec_DESIRED_STATE_STOPPED Spec_DesiredState = 1
// Deployment is completed. Please use DESIRED_STATE_ACTIVE instead.
//
// Deprecated: Marked as deprecated in flyteidl2/app/app_definition.proto.
Spec_DESIRED_STATE_STARTED Spec_DesiredState = 2
// Deployment is completed.
Spec_DESIRED_STATE_ACTIVE Spec_DesiredState = 3
)
// Enum value maps for Spec_DesiredState.
var (
Spec_DesiredState_name = map[int32]string{
0: "DESIRED_STATE_UNSPECIFIED",
1: "DESIRED_STATE_STOPPED",
2: "DESIRED_STATE_STARTED",
3: "DESIRED_STATE_ACTIVE",
}
Spec_DesiredState_value = map[string]int32{
"DESIRED_STATE_UNSPECIFIED": 0,
"DESIRED_STATE_STOPPED": 1,
"DESIRED_STATE_STARTED": 2,
"DESIRED_STATE_ACTIVE": 3,
}
)
func (x Spec_DesiredState) Enum() *Spec_DesiredState {
p := new(Spec_DesiredState)
*p = x
return p
}
func (x Spec_DesiredState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Spec_DesiredState) Descriptor() protoreflect.EnumDescriptor {
return file_flyteidl2_app_app_definition_proto_enumTypes[1].Descriptor()
}
func (Spec_DesiredState) Type() protoreflect.EnumType {
return &file_flyteidl2_app_app_definition_proto_enumTypes[1]
}
func (x Spec_DesiredState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Spec_DesiredState.Descriptor instead.
func (Spec_DesiredState) EnumDescriptor() ([]byte, []int) {
return file_flyteidl2_app_app_definition_proto_rawDescGZIP(), []int{8, 0}
}
type Identifier struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Org that the app belongs to.
Org string `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"`
// Project that the app belongs to.
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
// Domain that the app belongs to.
Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
// Name that the user provided for the app.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *Identifier) Reset() {
*x = Identifier{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_app_app_definition_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Identifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Identifier) ProtoMessage() {}
func (x *Identifier) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_app_app_definition_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 Identifier.ProtoReflect.Descriptor instead.
func (*Identifier) Descriptor() ([]byte, []int) {
return file_flyteidl2_app_app_definition_proto_rawDescGZIP(), []int{0}
}
func (x *Identifier) GetOrg() string {
if x != nil {
return x.Org
}
return ""
}
func (x *Identifier) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *Identifier) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *Identifier) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type Meta struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the app.
Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Revision of the app object.
Revision uint64 `protobuf:"varint,2,opt,name=revision,proto3" json:"revision,omitempty"`
// Labels for the app.
Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Meta) Reset() {
*x = Meta{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_app_app_definition_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Meta) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Meta) ProtoMessage() {}
func (x *Meta) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_app_app_definition_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 Meta.ProtoReflect.Descriptor instead.
func (*Meta) Descriptor() ([]byte, []int) {
return file_flyteidl2_app_app_definition_proto_rawDescGZIP(), []int{1}
}
func (x *Meta) GetId() *Identifier {
if x != nil {
return x.Id
}
return nil
}
func (x *Meta) GetRevision() uint64 {
if x != nil {
return x.Revision
}
return 0
}
func (x *Meta) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
// For internal usage only. This message is used to wrap the app message with the host.
type AppWrapper struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
// Types that are assignable to Payload:
//
// *AppWrapper_App
// *AppWrapper_AppId
Payload isAppWrapper_Payload `protobuf_oneof:"payload"`
}
func (x *AppWrapper) Reset() {
*x = AppWrapper{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_app_app_definition_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AppWrapper) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AppWrapper) ProtoMessage() {}
func (x *AppWrapper) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_app_app_definition_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 AppWrapper.ProtoReflect.Descriptor instead.
func (*AppWrapper) Descriptor() ([]byte, []int) {
return file_flyteidl2_app_app_definition_proto_rawDescGZIP(), []int{2}
}
func (x *AppWrapper) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (m *AppWrapper) GetPayload() isAppWrapper_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (x *AppWrapper) GetApp() *App {
if x, ok := x.GetPayload().(*AppWrapper_App); ok {
return x.App
}
return nil
}
func (x *AppWrapper) GetAppId() *Identifier {
if x, ok := x.GetPayload().(*AppWrapper_AppId); ok {
return x.AppId
}
return nil
}
type isAppWrapper_Payload interface {
isAppWrapper_Payload()
}
type AppWrapper_App struct {
App *App `protobuf:"bytes,2,opt,name=app,proto3,oneof"`
}
type AppWrapper_AppId struct {
AppId *Identifier `protobuf:"bytes,3,opt,name=app_id,json=appId,proto3,oneof"`
}
func (*AppWrapper_App) isAppWrapper_Payload() {}
func (*AppWrapper_AppId) isAppWrapper_Payload() {}
// Represents an app with its specification and status.
type App struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Metadata of the app.
Metadata *Meta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
// Specification of the app.
Spec *Spec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
// Status of the app.
Status *Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
}
func (x *App) Reset() {
*x = App{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_app_app_definition_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *App) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*App) ProtoMessage() {}
func (x *App) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_app_app_definition_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 App.ProtoReflect.Descriptor instead.
func (*App) Descriptor() ([]byte, []int) {
return file_flyteidl2_app_app_definition_proto_rawDescGZIP(), []int{3}
}
func (x *App) GetMetadata() *Meta {
if x != nil {
return x.Metadata
}
return nil
}
func (x *App) GetSpec() *Spec {
if x != nil {
return x.Spec
}
return nil
}
func (x *App) GetStatus() *Status {
if x != nil {
return x.Status
}
return nil
}
// Represents the condition of an app.
type Condition struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Last transition time of the condition.
LastTransitionTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_transition_time,json=lastTransitionTime,proto3" json:"last_transition_time,omitempty"`
// Deployment status of the app.
DeploymentStatus Status_DeploymentStatus `protobuf:"varint,2,opt,name=deployment_status,json=deploymentStatus,proto3,enum=flyteidl2.app.Status_DeploymentStatus" json:"deployment_status,omitempty"`
// Message for the condition.
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// Revision the Condition applies to. This can be used by consumers
// to introspect and visualize which revisions are up.
Revision uint64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"`
// Actor is the principal that caused the condition.
Actor *common.EnrichedIdentity `protobuf:"bytes,5,opt,name=actor,proto3" json:"actor,omitempty"`
}
func (x *Condition) Reset() {
*x = Condition{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_app_app_definition_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Condition) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Condition) ProtoMessage() {}
func (x *Condition) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_app_app_definition_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 Condition.ProtoReflect.Descriptor instead.
func (*Condition) Descriptor() ([]byte, []int) {
return file_flyteidl2_app_app_definition_proto_rawDescGZIP(), []int{4}
}
func (x *Condition) GetLastTransitionTime() *timestamppb.Timestamp {
if x != nil {
return x.LastTransitionTime
}
return nil
}
func (x *Condition) GetDeploymentStatus() Status_DeploymentStatus {
if x != nil {
return x.DeploymentStatus
}
return Status_DEPLOYMENT_STATUS_UNSPECIFIED
}
func (x *Condition) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *Condition) GetRevision() uint64 {
if x != nil {
return x.Revision
}
return 0
}
func (x *Condition) GetActor() *common.EnrichedIdentity {
if x != nil {
return x.Actor
}
return nil
}
// Represents the status of an app.
type Status struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AssignedCluster string `protobuf:"bytes,1,opt,name=assigned_cluster,json=assignedCluster,proto3" json:"assigned_cluster,omitempty"`
// Current number of replicas.
CurrentReplicas uint32 `protobuf:"varint,2,opt,name=current_replicas,json=currentReplicas,proto3" json:"current_replicas,omitempty"`
// List of public URLs for the app.
Ingress *Ingress `protobuf:"bytes,3,opt,name=ingress,proto3" json:"ingress,omitempty"`
// CreatedAt is the time when the app was first created
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// LastUpdatedAt is the time when the app was last updated
LastUpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_updated_at,json=lastUpdatedAt,proto3" json:"last_updated_at,omitempty"`
// Conditions for the app.
Conditions []*Condition `protobuf:"bytes,6,rep,name=conditions,proto3" json:"conditions,omitempty"`
// LeaseExpiration refers to how long the app is leased to a cluster for it to start processing it. If the lease
// period expires, the cluster will no longer be allowed to update this app and another cluster can pick it up.
LeaseExpiration *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=lease_expiration,json=leaseExpiration,proto3" json:"lease_expiration,omitempty"`
// K8sMetadata contains metadata about the app in the K8s cluster.
K8SMetadata *K8SMetadata `protobuf:"bytes,8,opt,name=k8s_metadata,json=k8sMetadata,proto3" json:"k8s_metadata,omitempty"`
MaterializedInputs *MaterializedInputs `protobuf:"bytes,9,opt,name=materialized_inputs,json=materializedInputs,proto3" json:"materialized_inputs,omitempty"`
}
func (x *Status) Reset() {
*x = Status{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_app_app_definition_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Status) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Status) ProtoMessage() {}
func (x *Status) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_app_app_definition_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 Status.ProtoReflect.Descriptor instead.
func (*Status) Descriptor() ([]byte, []int) {
return file_flyteidl2_app_app_definition_proto_rawDescGZIP(), []int{5}
}
func (x *Status) GetAssignedCluster() string {
if x != nil {
return x.AssignedCluster
}
return ""
}
func (x *Status) GetCurrentReplicas() uint32 {
if x != nil {
return x.CurrentReplicas
}
return 0
}
func (x *Status) GetIngress() *Ingress {
if x != nil {
return x.Ingress
}
return nil
}
func (x *Status) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Status) GetLastUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.LastUpdatedAt
}
return nil
}
func (x *Status) GetConditions() []*Condition {
if x != nil {
return x.Conditions
}
return nil
}
func (x *Status) GetLeaseExpiration() *timestamppb.Timestamp {
if x != nil {
return x.LeaseExpiration
}
return nil
}
func (x *Status) GetK8SMetadata() *K8SMetadata {
if x != nil {
return x.K8SMetadata
}
return nil
}
func (x *Status) GetMaterializedInputs() *MaterializedInputs {
if x != nil {
return x.MaterializedInputs
}
return nil
}
type K8SMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Namespace points to the namespace the app is deployed in.
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
}
func (x *K8SMetadata) Reset() {
*x = K8SMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_app_app_definition_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *K8SMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*K8SMetadata) ProtoMessage() {}
func (x *K8SMetadata) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_app_app_definition_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 K8SMetadata.ProtoReflect.Descriptor instead.
func (*K8SMetadata) Descriptor() ([]byte, []int) {
return file_flyteidl2_app_app_definition_proto_rawDescGZIP(), []int{6}
}
func (x *K8SMetadata) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
type Ingress struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Public URL of the app.
PublicUrl string `protobuf:"bytes,1,opt,name=public_url,json=publicUrl,proto3" json:"public_url,omitempty"`
// Canonical name (CNAME) URL of the app.
CnameUrl string `protobuf:"bytes,2,opt,name=cname_url,json=cnameUrl,proto3" json:"cname_url,omitempty"`
// VPC URL of the app.
VpcUrl string `protobuf:"bytes,3,opt,name=vpc_url,json=vpcUrl,proto3" json:"vpc_url,omitempty"`
}
func (x *Ingress) Reset() {
*x = Ingress{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_app_app_definition_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Ingress) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Ingress) ProtoMessage() {}
func (x *Ingress) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_app_app_definition_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 Ingress.ProtoReflect.Descriptor instead.
func (*Ingress) Descriptor() ([]byte, []int) {
return file_flyteidl2_app_app_definition_proto_rawDescGZIP(), []int{7}
}
func (x *Ingress) GetPublicUrl() string {
if x != nil {
return x.PublicUrl
}
return ""
}
func (x *Ingress) GetCnameUrl() string {
if x != nil {
return x.CnameUrl
}
return ""
}
func (x *Ingress) GetVpcUrl() string {
if x != nil {
return x.VpcUrl
}
return ""
}
// Represents the specification of an app.
type Spec struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Payload of the app, which can be either a container or a K8s pod.
//
// Types that are assignable to AppPayload:
//
// *Spec_Container
// *Spec_Pod
AppPayload isSpec_AppPayload `protobuf_oneof:"app_payload"`
// Autoscaling configuration for the app.
Autoscaling *AutoscalingConfig `protobuf:"bytes,3,opt,name=autoscaling,proto3" json:"autoscaling,omitempty"`
// Ingress configuration for the app.
Ingress *IngressConfig `protobuf:"bytes,4,opt,name=ingress,proto3" json:"ingress,omitempty"`
// Deployment status of the app.
DesiredState Spec_DesiredState `protobuf:"varint,5,opt,name=desired_state,json=desiredState,proto3,enum=flyteidl2.app.Spec_DesiredState" json:"desired_state,omitempty"`
// ClusterPool to place this app on. By default it'll use the default cluster pool.
ClusterPool string `protobuf:"bytes,6,opt,name=cluster_pool,json=clusterPool,proto3" json:"cluster_pool,omitempty"`
// Set of image specifications for the app.
Images *ImageSpecSet `protobuf:"bytes,7,opt,name=images,proto3" json:"images,omitempty"`
// security_context encapsulates security attributes requested to run this task.
SecurityContext *SecurityContext `protobuf:"bytes,8,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"`
// Encapsulates all non-standard resources, not captured by
// v1.ResourceRequirements, to allocate to a task.
ExtendedResources *core.ExtendedResources `protobuf:"bytes,9,opt,name=extended_resources,json=extendedResources,proto3" json:"extended_resources,omitempty"`
// Runtime metadata for the app.
RuntimeMetadata *common.RuntimeMetadata `protobuf:"bytes,10,opt,name=runtime_metadata,json=runtimeMetadata,proto3" json:"runtime_metadata,omitempty"`
// Profile of the app.
Profile *Profile `protobuf:"bytes,11,opt,name=profile,proto3" json:"profile,omitempty"`
// Creator of the app is the first principal that provisioned this app. Other principals may
// interact with the app by updating its spec or stopping/starting it.
Creator *common.EnrichedIdentity `protobuf:"bytes,12,opt,name=creator,proto3" json:"creator,omitempty"`
// Inputs of the app.
Inputs *InputList `protobuf:"bytes,13,opt,name=inputs,proto3" json:"inputs,omitempty"`
Links []*Link `protobuf:"bytes,14,rep,name=links,proto3" json:"links,omitempty"`
// Timeout configuration for the app.
Timeouts *TimeoutConfig `protobuf:"bytes,15,opt,name=timeouts,proto3" json:"timeouts,omitempty"`
}
func (x *Spec) Reset() {
*x = Spec{}
if protoimpl.UnsafeEnabled {
mi := &file_flyteidl2_app_app_definition_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Spec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Spec) ProtoMessage() {}
func (x *Spec) ProtoReflect() protoreflect.Message {
mi := &file_flyteidl2_app_app_definition_proto_msgTypes[8]
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 Spec.ProtoReflect.Descriptor instead.
func (*Spec) Descriptor() ([]byte, []int) {
return file_flyteidl2_app_app_definition_proto_rawDescGZIP(), []int{8}
}
func (m *Spec) GetAppPayload() isSpec_AppPayload {
if m != nil {
return m.AppPayload
}
return nil
}
func (x *Spec) GetContainer() *core.Container {
if x, ok := x.GetAppPayload().(*Spec_Container); ok {
return x.Container
}
return nil
}
func (x *Spec) GetPod() *core.K8SPod {
if x, ok := x.GetAppPayload().(*Spec_Pod); ok {
return x.Pod
}
return nil
}
func (x *Spec) GetAutoscaling() *AutoscalingConfig {
if x != nil {
return x.Autoscaling
}
return nil
}
func (x *Spec) GetIngress() *IngressConfig {
if x != nil {
return x.Ingress
}
return nil
}
func (x *Spec) GetDesiredState() Spec_DesiredState {
if x != nil {
return x.DesiredState
}
return Spec_DESIRED_STATE_UNSPECIFIED
}
func (x *Spec) GetClusterPool() string {
if x != nil {
return x.ClusterPool
}
return ""
}
func (x *Spec) GetImages() *ImageSpecSet {
if x != nil {
return x.Images
}
return nil
}
func (x *Spec) GetSecurityContext() *SecurityContext {
if x != nil {
return x.SecurityContext
}
return nil
}
func (x *Spec) GetExtendedResources() *core.ExtendedResources {
if x != nil {
return x.ExtendedResources
}
return nil
}
func (x *Spec) GetRuntimeMetadata() *common.RuntimeMetadata {
if x != nil {
return x.RuntimeMetadata
}
return nil
}
func (x *Spec) GetProfile() *Profile {
if x != nil {
return x.Profile
}
return nil
}
func (x *Spec) GetCreator() *common.EnrichedIdentity {
if x != nil {
return x.Creator
}
return nil
}
func (x *Spec) GetInputs() *InputList {
if x != nil {
return x.Inputs
}
return nil
}
func (x *Spec) GetLinks() []*Link {
if x != nil {
return x.Links
}
return nil
}
func (x *Spec) GetTimeouts() *TimeoutConfig {
if x != nil {
return x.Timeouts
}
return nil
}
type isSpec_AppPayload interface {
isSpec_AppPayload()
}
type Spec_Container struct {
// Container payload.
Container *core.Container `protobuf:"bytes,1,opt,name=container,proto3,oneof"`
}
type Spec_Pod struct {
// K8s pod payload.
Pod *core.K8SPod `protobuf:"bytes,2,opt,name=pod,proto3,oneof"`
}
func (*Spec_Container) isSpec_AppPayload() {}
func (*Spec_Pod) isSpec_AppPayload() {}
// Represents a link to an external resource (Arize project link, W&B dashboard, etc)
type Link struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields