-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathopenapi.yaml
More file actions
1747 lines (1736 loc) · 59 KB
/
Copy pathopenapi.yaml
File metadata and controls
1747 lines (1736 loc) · 59 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
openapi: 3.0.0
info:
title: HyperFleet API
version: 1.0.9
contact:
name: HyperFleet Team
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0
description: |-
HyperFleet API provides simple CRUD operations for managing cluster resources and their status history.
**Architecture**: Simple CRUD only, no business logic, no event creation.
Sentinel operator handles all orchestration logic.
Adapters handle the specifics of managing spec
tags: []
paths:
/api/hyperfleet/v1/clusters:
get:
operationId: getClusters
summary: List clusters
parameters:
- $ref: '#/components/parameters/SearchParams'
- $ref: '#/components/parameters/QueryParams.page'
- $ref: '#/components/parameters/QueryParams.pageSize'
- $ref: '#/components/parameters/QueryParams.orderBy'
- $ref: '#/components/parameters/QueryParams.order'
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/ClusterList'
'400':
description: The server could not understand the request due to invalid syntax.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
security:
- BearerAuth: []
post:
operationId: postCluster
summary: Create cluster
description: |-
Create a new cluster resource.
**Note**: The `status` object in the response is read-only and computed by the service.
It is NOT part of the request body. Initially,
status.conditions will include mandatory "Available", "Ready" and "Reconciled" conditions.
parameters: []
responses:
'201':
description: The request has succeeded and a new resource has been created as a result.
content:
application/json:
schema:
$ref: '#/components/schemas/Cluster'
'400':
description: The server could not understand the request due to invalid syntax.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ClusterCreateRequest'
security:
- BearerAuth: []
/api/hyperfleet/v1/clusters/{cluster_id}:
get:
operationId: getClusterById
summary: Get cluster by ID
parameters:
- $ref: '#/components/parameters/SearchParams'
- name: cluster_id
in: path
required: true
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/Cluster'
'400':
description: The server could not understand the request due to invalid syntax.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
security:
- BearerAuth: []
patch:
operationId: patchClusterById
summary: Patch cluster by ID
description: Patch a specific cluster by ID
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/Cluster'
'400':
description: The server could not understand the request due to invalid syntax.
'404':
description: The server cannot find the requested resource.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ClusterPatchRequest'
security:
- BearerAuth: []
delete:
operationId: deleteClusterById
summary: Request cluster deletion
description: |-
Marks the cluster for deletion by setting deleted_time to the current time, cascades to its nodepools.
The cluster remains in the database until it is fully deleted.
Returns the updated cluster with generation incremented.
parameters:
- name: cluster_id
in: path
required: true
schema:
type: string
responses:
'202':
description: The request has been accepted for processing, but processing has not yet completed.
content:
application/json:
schema:
$ref: '#/components/schemas/Cluster'
example:
kind: Cluster
id: 019466a0-8f8e-7abc-9def-0123456789ab
href: https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab
name: cluster-123
labels:
environment: production
team: platform
spec: {}
generation: 2
status:
conditions:
- type: Ready
status: 'True'
reason: All adapters reported Ready True for the current generation
message: All adapters reported Ready True for the current generation
observed_generation: 2
created_time: '2021-01-01T10:00:00Z'
last_updated_time: '2021-01-01T10:00:00Z'
last_transition_time: '2021-01-01T10:00:00Z'
- type: Reconciled
status: 'True'
reason: All required adapters reported Available=True or Finalized=True at the current generation
message: All required adapters reported Available=True or Finalized=True at the current generation
observed_generation: 2
created_time: '2021-01-01T10:00:00Z'
last_updated_time: '2021-01-01T10:00:00Z'
last_transition_time: '2021-01-01T10:00:00Z'
- type: Available
status: 'True'
reason: All adapters reported Available True for the same generation
message: All adapters reported Available True for the same generation
observed_generation: 2
created_time: '2021-01-01T10:00:00Z'
last_updated_time: '2021-01-01T10:00:00Z'
last_transition_time: '2021-01-01T10:00:00Z'
- type: Adapter1Successful
status: 'True'
reason: This adapter1 is available
message: This adapter1 is available
observed_generation: 2
created_time: '2021-01-01T10:00:00Z'
last_updated_time: '2021-01-01T10:00:00Z'
last_transition_time: '2021-01-01T10:00:00Z'
- type: Adapter2Successful
status: 'True'
reason: This adapter2 is available
message: This adapter2 is available
observed_generation: 2
created_time: '2021-01-01T10:01:00Z'
last_updated_time: '2021-01-01T10:01:00Z'
last_transition_time: '2021-01-01T10:01:00Z'
created_time: '2021-01-01T00:00:00Z'
updated_time: '2021-01-01T10:02:00Z'
deleted_time: '2021-01-01T10:05:00Z'
created_by: user-123@example.com
updated_by: user-123@example.com
deleted_by: user-123@example.com
'400':
description: The server could not understand the request due to invalid syntax.
'404':
description: The server cannot find the requested resource.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
security:
- BearerAuth: []
/api/hyperfleet/v1/clusters/{cluster_id}/nodepools:
get:
operationId: getNodePoolsByClusterId
summary: List all nodepools for cluster
description: Returns the list of all nodepools for a cluster
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
- $ref: '#/components/parameters/SearchParams'
- $ref: '#/components/parameters/QueryParams.page'
- $ref: '#/components/parameters/QueryParams.pageSize'
- $ref: '#/components/parameters/QueryParams.orderBy'
- $ref: '#/components/parameters/QueryParams.order'
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/NodePoolList'
'400':
description: The server could not understand the request due to invalid syntax.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
security:
- BearerAuth: []
post:
operationId: createNodePool
summary: Create nodepool
description: Create a NodePool for a cluster
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
responses:
'201':
description: The request has succeeded and a new resource has been created as a result.
content:
application/json:
schema:
$ref: '#/components/schemas/NodePoolCreateResponse'
'400':
description: The server could not understand the request due to invalid syntax.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/NodePoolCreateRequest'
security:
- BearerAuth: []
/api/hyperfleet/v1/clusters/{cluster_id}/nodepools/{nodepool_id}:
get:
operationId: getNodePoolById
summary: Get nodepool by ID
description: Returns specific nodepool
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
- name: nodepool_id
in: path
required: true
description: NodePool ID
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/NodePool'
'400':
description: The server could not understand the request due to invalid syntax.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
security:
- BearerAuth: []
delete:
operationId: deleteNodePoolById
summary: Request nodepool deletion
description: |-
Marks the nodepool for deletion by setting deleted_time and deleted_by. Does not affect the parent cluster.
Returns the updated nodepool with generation incremented.
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
- name: nodepool_id
in: path
required: true
description: NodePool ID
schema:
type: string
responses:
'202':
description: The request has been accepted for processing, but processing has not yet completed.
content:
application/json:
schema:
$ref: '#/components/schemas/NodePool'
example:
kind: NodePool
id: 019466a1-2b3c-7def-8abc-456789abcdef
href: https://api.hyperfleet.com/v1/nodepools/019466a1-2b3c-7def-8abc-456789abcdef
name: worker-pool-1
labels:
environment: production
pooltype: worker
spec: {}
generation: 2
owner_references:
id: 019466a0-8f8e-7abc-9def-0123456789ab
kind: Cluster
href: https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab
status:
conditions:
- type: Ready
status: 'True'
reason: All adapters reported Ready True for the current generation
message: All adapters reported Ready True for the current generation
observed_generation: 2
created_time: '2021-01-01T10:00:00Z'
last_updated_time: '2021-01-01T10:00:00Z'
last_transition_time: '2021-01-01T10:00:00Z'
- type: Reconciled
status: 'True'
reason: All required adapters reported Available=True or Finalized=True at the current generation
message: All required adapters reported Available=True or Finalized=True at the current generation
observed_generation: 2
created_time: '2021-01-01T10:00:00Z'
last_updated_time: '2021-01-01T10:00:00Z'
last_transition_time: '2021-01-01T10:00:00Z'
- type: Available
status: 'True'
reason: All adapters reported Available True for the same generation
message: All adapters reported Available True for the same generation
observed_generation: 2
created_time: '2021-01-01T10:00:00Z'
last_updated_time: '2021-01-01T10:00:00Z'
last_transition_time: '2021-01-01T10:00:00Z'
- type: Adapter1Successful
status: 'True'
reason: This adapter1 is available
message: This adapter1 is available
observed_generation: 2
created_time: '2021-01-01T10:00:00Z'
last_updated_time: '2021-01-01T10:00:00Z'
last_transition_time: '2021-01-01T10:00:00Z'
- type: Adapter2Successful
status: 'True'
reason: This adapter2 is available
message: This adapter2 is available
observed_generation: 2
created_time: '2021-01-01T10:01:00Z'
last_updated_time: '2021-01-01T10:01:00Z'
last_transition_time: '2021-01-01T10:01:00Z'
created_time: '2021-01-01T00:00:00Z'
updated_time: '2021-01-01T10:02:00Z'
deleted_time: '2021-01-01T10:05:00Z'
created_by: user-123@example.com
updated_by: user-123@example.com
deleted_by: user-123@example.com
'400':
description: The server could not understand the request due to invalid syntax.
'404':
description: The server cannot find the requested resource.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
security:
- BearerAuth: []
patch:
operationId: patchNodePoolById
summary: Patch nodepool by ID
description: Patch a specific nodepool within a cluster
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
- name: nodepool_id
in: path
required: true
description: NodePool ID
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/NodePool'
'400':
description: The server could not understand the request due to invalid syntax.
'404':
description: The server cannot find the requested resource.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/NodePoolPatchRequest'
security:
- BearerAuth: []
/api/hyperfleet/v1/clusters/{cluster_id}/nodepools/{nodepool_id}/statuses:
post:
operationId: postNodePoolStatuses
summary: Create or update adapter status
description: |-
Adapter creates or updates its status report for this nodepool.
If adapter already has a status, it will be updated (upsert by adapter name).
Response includes the full adapter status with all conditions.
Adapter should call this endpoint every time it evaluates the nodepool.
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
- name: nodepool_id
in: path
required: true
description: Nodepool ID
schema:
type: string
responses:
'201':
description: The request has succeeded and a new resource has been created as a result.
content:
application/json:
schema:
$ref: '#/components/schemas/AdapterStatus'
'400':
description: The server could not understand the request due to invalid syntax.
'404':
description: The server cannot find the requested resource.
'409':
description: The request conflicts with the current state of the server.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AdapterStatusCreateRequest'
security:
- BearerAuth: []
put:
operationId: putNodePoolStatuses
summary: Adapter creates or updates resource nodepool status
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
- name: nodepool_id
in: path
required: true
description: Nodepool ID
schema:
type: string
responses:
'201':
description: The request has succeeded and a new resource has been created as a result.
content:
application/json:
schema:
$ref: '#/components/schemas/AdapterStatus'
'400':
description: The server could not understand the request due to invalid syntax.
'404':
description: The server cannot find the requested resource.
'409':
description: The request conflicts with the current state of the server.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AdapterStatusCreateRequest'
security:
- BearerAuth: []
get:
operationId: getNodePoolsStatuses
summary: List all adapter statuses for nodepools
description: Returns adapter status reports for this nodepool
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
- name: nodepool_id
in: path
required: true
schema:
type: string
- $ref: '#/components/parameters/SearchParams'
- $ref: '#/components/parameters/QueryParams.page'
- $ref: '#/components/parameters/QueryParams.pageSize'
- $ref: '#/components/parameters/QueryParams.orderBy'
- $ref: '#/components/parameters/QueryParams.order'
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/AdapterStatusList'
'400':
description: The server could not understand the request due to invalid syntax.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
/api/hyperfleet/v1/clusters/{cluster_id}/statuses:
post:
operationId: postClusterStatuses
summary: Create or update adapter status
description: |-
Adapter creates or updates its status report for this cluster.
If adapter already has a status, it will be updated (upsert by adapter name).
Response includes the full adapter status with all conditions.
Adapter should call this endpoint every time it evaluates the cluster.
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
responses:
'201':
description: The request has succeeded and a new resource has been created as a result.
content:
application/json:
schema:
$ref: '#/components/schemas/AdapterStatus'
'400':
description: The server could not understand the request due to invalid syntax.
'404':
description: The server cannot find the requested resource.
'409':
description: The request conflicts with the current state of the server.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AdapterStatusCreateRequest'
security:
- BearerAuth: []
put:
operationId: putClusterStatuses
summary: Adapter creates or updates resource cluster status
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
responses:
'201':
description: The request has succeeded and a new resource has been created as a result.
content:
application/json:
schema:
$ref: '#/components/schemas/AdapterStatus'
'400':
description: The server could not understand the request due to invalid syntax.
'404':
description: The server cannot find the requested resource.
'409':
description: The request conflicts with the current state of the server.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AdapterStatusCreateRequest'
security:
- BearerAuth: []
get:
operationId: getClusterStatuses
summary: List all adapter statuses for cluster
description: Returns adapter status reports for this cluster
parameters:
- name: cluster_id
in: path
required: true
description: Cluster ID
schema:
type: string
- $ref: '#/components/parameters/SearchParams'
- $ref: '#/components/parameters/QueryParams.page'
- $ref: '#/components/parameters/QueryParams.pageSize'
- $ref: '#/components/parameters/QueryParams.orderBy'
- $ref: '#/components/parameters/QueryParams.order'
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/AdapterStatusList'
'400':
description: The server could not understand the request due to invalid syntax.
'404':
description: The server cannot find the requested resource.
security:
- BearerAuth: []
/api/hyperfleet/v1/nodepools:
get:
operationId: getNodePools
summary: List all nodepools for cluster
description: Returns the list of all nodepools
parameters:
- $ref: '#/components/parameters/SearchParams'
- $ref: '#/components/parameters/QueryParams.page'
- $ref: '#/components/parameters/QueryParams.pageSize'
- $ref: '#/components/parameters/QueryParams.orderBy'
- $ref: '#/components/parameters/QueryParams.order'
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/NodePoolList'
'400':
description: The server could not understand the request due to invalid syntax.
default:
description: An unexpected error response.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Error'
security:
- BearerAuth: []
components:
parameters:
QueryParams.order:
name: order
in: query
required: false
schema:
$ref: '#/components/schemas/OrderDirection'
explode: false
QueryParams.orderBy:
name: orderBy
in: query
required: false
schema:
type: string
default: created_time
explode: false
QueryParams.page:
name: page
in: query
required: false
schema:
type: integer
format: int32
default: 1
explode: false
QueryParams.pageSize:
name: pageSize
in: query
required: false
schema:
type: integer
format: int32
default: 20
explode: false
SearchParams:
name: search
in: query
required: false
description: |-
Filter results using TSL (Tree Search Language) query syntax.
Examples: `status.conditions.Ready='True'`, `name in ('c1','c2')`, `labels.region='us-east'`
schema:
type: string
explode: false
schemas:
AdapterCondition:
type: object
required:
- type
- last_transition_time
- status
properties:
type:
type: string
description: Condition type
reason:
type: string
description: Machine-readable reason code
message:
type: string
description: Human-readable message
last_transition_time:
type: string
format: date-time
description: |-
When this condition last transitioned status (API-managed)
Only updated when status changes (True/False), not when reason/message changes
status:
$ref: '#/components/schemas/AdapterConditionStatus'
description: |-
Condition in AdapterStatus
Used for standard Kubernetes condition types: "Available", "Applied", "Health", "Finalized"
Note: observed_generation is at AdapterStatus level, not per-condition,
since all conditions in one AdapterStatus share the same observed generation
AdapterConditionStatus:
type: string
enum:
- 'True'
- 'False'
- Unknown
description: Status value for adapter conditions
AdapterStatus:
type: object
required:
- adapter
- observed_generation
- conditions
- created_time
- last_report_time
properties:
adapter:
type: string
description: Adapter name (e.g., "validator", "dns", "provisioner")
observed_generation:
type: integer
format: int32
description: Which generation of the resource this status reflects
metadata:
type: object
properties:
job_name:
type: string
job_namespace:
type: string
attempt:
type: integer
format: int32
started_time:
type: string
format: date-time
completed_time:
type: string
format: date-time
duration:
type: string
description: Job execution metadata
data:
type: object
additionalProperties: {}
description: Adapter-specific data (structure varies by adapter type)
conditions:
type: array
items:
$ref: '#/components/schemas/AdapterCondition'
description: |-
Kubernetes-style conditions tracking adapter state
Typically includes: Available, Applied, Health, Finalized
created_time:
type: string
format: date-time
description: When this adapter status was first created (API-managed)
last_report_time:
type: string
format: date-time
description: |-
When this adapter last reported its status (API-managed)
Updated every time the adapter POSTs, even if conditions haven't changed
Used by Sentinel to detect adapter liveness
description: |-
AdapterStatus represents the complete status report from an adapter
Contains multiple conditions, job metadata, and adapter-specific data
example:
adapter: adapter1
observed_generation: 1
conditions:
- type: Available
status: 'True'
reason: This adapter1 is available
message: This adapter1 is available
last_transition_time: '2021-01-01T10:00:00Z'
- type: Applied
status: 'True'
reason: Validation job applied
message: Adapter1 validation job applied successfully
last_transition_time: '2021-01-01T10:00:00Z'
- type: Health
status: 'True'
reason: All adapter1 operations completed successfully
message: All adapter1 runtime operations completed successfully
last_transition_time: '2021-01-01T10:00:00Z'
- type: Finalized
status: 'True'
reason: All resources deleted; cleanup confirmed
message: All resources deleted; cleanup confirmed
last_transition_time: '2021-01-01T10:00:00Z'
metadata:
job_name: validator-job-abc123
job_namespace: hyperfleet-system
attempt: 1
started_time: '2021-01-01T10:00:00Z'
completed_time: '2021-01-01T10:02:00Z'
duration: 2m
data:
validation_results:
total_tests: 30
passed: 30
failed: 0
created_time: '2021-01-01T10:00:00Z'
last_report_time: '2021-01-01T10:02:00Z'
AdapterStatusCreateRequest:
type: object
required:
- adapter
- observed_generation
- observed_time
- conditions
properties:
adapter:
type: string
description: Adapter name (e.g., "validator", "dns", "provisioner")
observed_generation:
type: integer
format: int32
description: Which generation of the resource this status reflects
metadata:
type: object
properties:
job_name:
type: string
job_namespace:
type: string
attempt:
type: integer
format: int32
started_time:
type: string
format: date-time
completed_time:
type: string
format: date-time
duration:
type: string
description: Job execution metadata
data:
type: object
additionalProperties: {}
description: Adapter-specific data (structure varies by adapter type)
observed_time:
type: string
format: date-time
description: |-
When the adapter observed this resource state
API will use this to set AdapterStatus.last_report_time
conditions:
type: array
items:
$ref: '#/components/schemas/ConditionRequest'
description: Request payload for creating/updating adapter status
example:
adapter: validator
observed_generation: 1
observed_time: '2021-01-01T10:00:00Z'
conditions:
- type: Available
status: 'True'
reason: This adapter1 is available
message: This adapter1 is available
- type: Applied
status: 'True'
reason: Validation job applied
message: Adapter1 validation job applied successfully
- type: Health
status: 'True'
reason: All adapter1 operations completed successfully
message: All adapter1 runtime operations completed successfully
- type: Finalized
status: 'True'
reason: All resources deleted; cleanup confirmed
message: All resources deleted; cleanup confirmed
metadata:
job_name: validator-job-abc123
job_namespace: hyperfleet-system
attempt: 1
started_time: '2021-01-01T10:00:00Z'
completed_time: '2021-01-01T10:02:00Z'
duration: 2m
data:
validation_results:
total_tests: 30
passed: 30
failed: 0
AdapterStatusList:
type: object
required:
- kind
- page
- size
- total
- items
properties:
kind:
type: string
page:
type: integer
format: int32
size:
type: integer
format: int32
total:
type: integer