Skip to content

Commit 954d4fc

Browse files
committed
HYPERFLEET-853 - feat: Fix ReconciledReason and message
1 parent c5756e7 commit 954d4fc

5 files changed

Lines changed: 34 additions & 50 deletions

File tree

models/common/model.tsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ model ResourceCondition {
247247
const ExampleAvailableMessage: string = "All adapters reported Available True for the same generation";
248248
const ExampleReadyReason: string = "All adapters reported Ready True for the current generation";
249249
const ExampleReadyMessage: string = "All adapters reported Ready True for the current generation";
250-
const ExampleReconciledReason: string = "All adapters reported Reconciled True for the current generation";
251-
const ExampleReconciledMessage: string = "All adapters reported Reconciled True for the current generation";
250+
const ExampleReconciledReason: string = "All adapters reconciled at the current generation";
251+
const ExampleReconciledMessage: string = "All adapters reconciled at the current generation";
252252
const ExampleAdapter1: string = "adapter1";
253253
const ExampleAdapter2: string = "adapter2";
254254
const ExampleAdapter1AppliedReason: string = "Validation job applied";

schemas/core/openapi.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ paths:
181181
last_transition_time: '2021-01-01T10:00:00Z'
182182
- type: Reconciled
183183
status: 'True'
184-
reason: All adapters reported Reconciled True for the current generation
185-
message: All adapters reported Reconciled True for the current generation
184+
reason: All adapters reconciled at the current generation
185+
message: All adapters reconciled at the current generation
186186
observed_generation: 1
187187
created_time: '2021-01-01T10:00:00Z'
188188
last_updated_time: '2021-01-01T10:00:00Z'
@@ -384,8 +384,8 @@ paths:
384384
last_transition_time: '2021-01-01T10:00:00Z'
385385
- type: Reconciled
386386
status: 'True'
387-
reason: All adapters reported Reconciled True for the current generation
388-
message: All adapters reported Reconciled True for the current generation
387+
reason: All adapters reconciled at the current generation
388+
message: All adapters reconciled at the current generation
389389
observed_generation: 1
390390
created_time: '2021-01-01T10:00:00Z'
391391
last_updated_time: '2021-01-01T10:00:00Z'
@@ -1054,8 +1054,8 @@ components:
10541054
last_transition_time: '2021-01-01T10:00:00Z'
10551055
- type: Reconciled
10561056
status: 'True'
1057-
reason: All adapters reported Reconciled True for the current generation
1058-
message: All adapters reported Reconciled True for the current generation
1057+
reason: All adapters reconciled at the current generation
1058+
message: All adapters reconciled at the current generation
10591059
observed_generation: 1
10601060
created_time: '2021-01-01T10:00:00Z'
10611061
last_updated_time: '2021-01-01T10:00:00Z'
@@ -1353,8 +1353,8 @@ components:
13531353
last_transition_time: '2021-01-01T10:00:00Z'
13541354
- type: Reconciled
13551355
status: 'True'
1356-
reason: All adapters reported Reconciled True for the current generation
1357-
message: All adapters reported Reconciled True for the current generation
1356+
reason: All adapters reconciled at the current generation
1357+
message: All adapters reconciled at the current generation
13581358
observed_generation: 1
13591359
created_time: '2021-01-01T10:00:00Z'
13601360
last_updated_time: '2021-01-01T10:00:00Z'

schemas/core/swagger.yaml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,9 @@ paths:
164164
- created_time: '2021-01-01T10:00:00Z'
165165
last_transition_time: '2021-01-01T10:00:00Z'
166166
last_updated_time: '2021-01-01T10:00:00Z'
167-
message: >-
168-
All adapters reported Reconciled True for the current
169-
generation
167+
message: All adapters reconciled at the current generation
170168
observed_generation: 1
171-
reason: >-
172-
All adapters reported Reconciled True for the current
173-
generation
169+
reason: All adapters reconciled at the current generation
174170
status: 'True'
175171
type: Reconciled
176172
- created_time: '2021-01-01T10:00:00Z'
@@ -446,13 +442,9 @@ paths:
446442
- created_time: '2021-01-01T10:00:00Z'
447443
last_transition_time: '2021-01-01T10:00:00Z'
448444
last_updated_time: '2021-01-01T10:00:00Z'
449-
message: >-
450-
All adapters reported Reconciled True for the current
451-
generation
445+
message: All adapters reconciled at the current generation
452446
observed_generation: 1
453-
reason: >-
454-
All adapters reported Reconciled True for the current
455-
generation
447+
reason: All adapters reconciled at the current generation
456448
status: 'True'
457449
type: Reconciled
458450
- created_time: '2021-01-01T10:00:00Z'
@@ -1150,9 +1142,9 @@ definitions:
11501142
- created_time: '2021-01-01T10:00:00Z'
11511143
last_transition_time: '2021-01-01T10:00:00Z'
11521144
last_updated_time: '2021-01-01T10:00:00Z'
1153-
message: All adapters reported Reconciled True for the current generation
1145+
message: All adapters reconciled at the current generation
11541146
observed_generation: 1
1155-
reason: All adapters reported Reconciled True for the current generation
1147+
reason: All adapters reconciled at the current generation
11561148
status: 'True'
11571149
type: Reconciled
11581150
- created_time: '2021-01-01T10:00:00Z'
@@ -1466,9 +1458,9 @@ definitions:
14661458
- created_time: '2021-01-01T10:00:00Z'
14671459
last_transition_time: '2021-01-01T10:00:00Z'
14681460
last_updated_time: '2021-01-01T10:00:00Z'
1469-
message: All adapters reported Reconciled True for the current generation
1461+
message: All adapters reconciled at the current generation
14701462
observed_generation: 1
1471-
reason: All adapters reported Reconciled True for the current generation
1463+
reason: All adapters reconciled at the current generation
14721464
status: 'True'
14731465
type: Reconciled
14741466
- created_time: '2021-01-01T10:00:00Z'

schemas/gcp/openapi.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ paths:
200200
last_transition_time: '2021-01-01T10:00:00Z'
201201
- type: Reconciled
202202
status: 'True'
203-
reason: All adapters reported Reconciled True for the current generation
204-
message: All adapters reported Reconciled True for the current generation
203+
reason: All adapters reconciled at the current generation
204+
message: All adapters reconciled at the current generation
205205
observed_generation: 1
206206
created_time: '2021-01-01T10:00:00Z'
207207
last_updated_time: '2021-01-01T10:00:00Z'
@@ -422,8 +422,8 @@ paths:
422422
last_transition_time: '2021-01-01T10:00:00Z'
423423
- type: Reconciled
424424
status: 'True'
425-
reason: All adapters reported Reconciled True for the current generation
426-
message: All adapters reported Reconciled True for the current generation
425+
reason: All adapters reconciled at the current generation
426+
message: All adapters reconciled at the current generation
427427
observed_generation: 1
428428
created_time: '2021-01-01T10:00:00Z'
429429
last_updated_time: '2021-01-01T10:00:00Z'
@@ -990,8 +990,8 @@ components:
990990
last_transition_time: '2021-01-01T10:00:00Z'
991991
- type: Reconciled
992992
status: 'True'
993-
reason: All adapters reported Reconciled True for the current generation
994-
message: All adapters reported Reconciled True for the current generation
993+
reason: All adapters reconciled at the current generation
994+
message: All adapters reconciled at the current generation
995995
observed_generation: 1
996996
created_time: '2021-01-01T10:00:00Z'
997997
last_updated_time: '2021-01-01T10:00:00Z'
@@ -1408,8 +1408,8 @@ components:
14081408
last_transition_time: '2021-01-01T10:00:00Z'
14091409
- type: Reconciled
14101410
status: 'True'
1411-
reason: All adapters reported Reconciled True for the current generation
1412-
message: All adapters reported Reconciled True for the current generation
1411+
reason: All adapters reconciled at the current generation
1412+
message: All adapters reconciled at the current generation
14131413
observed_generation: 1
14141414
created_time: '2021-01-01T10:00:00Z'
14151415
last_updated_time: '2021-01-01T10:00:00Z'

schemas/gcp/swagger.yaml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,9 @@ paths:
184184
- created_time: '2021-01-01T10:00:00Z'
185185
last_transition_time: '2021-01-01T10:00:00Z'
186186
last_updated_time: '2021-01-01T10:00:00Z'
187-
message: >-
188-
All adapters reported Reconciled True for the current
189-
generation
187+
message: All adapters reconciled at the current generation
190188
observed_generation: 1
191-
reason: >-
192-
All adapters reported Reconciled True for the current
193-
generation
189+
reason: All adapters reconciled at the current generation
194190
status: 'True'
195191
type: Reconciled
196192
- created_time: '2021-01-01T10:00:00Z'
@@ -481,13 +477,9 @@ paths:
481477
- created_time: '2021-01-01T10:00:00Z'
482478
last_transition_time: '2021-01-01T10:00:00Z'
483479
last_updated_time: '2021-01-01T10:00:00Z'
484-
message: >-
485-
All adapters reported Reconciled True for the current
486-
generation
480+
message: All adapters reconciled at the current generation
487481
observed_generation: 1
488-
reason: >-
489-
All adapters reported Reconciled True for the current
490-
generation
482+
reason: All adapters reconciled at the current generation
491483
status: 'True'
492484
type: Reconciled
493485
- created_time: '2021-01-01T10:00:00Z'
@@ -1068,9 +1060,9 @@ definitions:
10681060
- created_time: '2021-01-01T10:00:00Z'
10691061
last_transition_time: '2021-01-01T10:00:00Z'
10701062
last_updated_time: '2021-01-01T10:00:00Z'
1071-
message: All adapters reported Reconciled True for the current generation
1063+
message: All adapters reconciled at the current generation
10721064
observed_generation: 1
1073-
reason: All adapters reported Reconciled True for the current generation
1065+
reason: All adapters reconciled at the current generation
10741066
status: 'True'
10751067
type: Reconciled
10761068
- created_time: '2021-01-01T10:00:00Z'
@@ -1501,9 +1493,9 @@ definitions:
15011493
- created_time: '2021-01-01T10:00:00Z'
15021494
last_transition_time: '2021-01-01T10:00:00Z'
15031495
last_updated_time: '2021-01-01T10:00:00Z'
1504-
message: All adapters reported Reconciled True for the current generation
1496+
message: All adapters reconciled at the current generation
15051497
observed_generation: 1
1506-
reason: All adapters reported Reconciled True for the current generation
1498+
reason: All adapters reconciled at the current generation
15071499
status: 'True'
15081500
type: Reconciled
15091501
- created_time: '2021-01-01T10:00:00Z'

0 commit comments

Comments
 (0)