Skip to content

Commit 4f6584e

Browse files
committed
HYPERFLEET-1017 - fix: set minItems to 3 for conditions arrays and bump to 1.0.12
Conditions arrays in cluster and nodepool status now require minItems: 3 to match the three default conditions (Ready, Provisioned, LastKnownReconciled). Updated all schema variants (OpenAPI 3.0 + Swagger 2.0) and CHANGELOG.
1 parent d8a0f05 commit 4f6584e

10 files changed

Lines changed: 33 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.0.12] - 2026-05-11
11+
12+
### Changed
13+
14+
- Set `minItems: 3` for conditions arrays in cluster and nodepool status models (HYPERFLEET-1017)
15+
1016
## [1.0.11] - 2026-05-07
1117

1218
### Added
@@ -108,7 +114,8 @@ First official stable release of the HyperFleet API specification.
108114
- Interactive API documentation
109115

110116
<!-- Links -->
111-
[Unreleased]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.11...HEAD
117+
[Unreleased]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.12...HEAD
118+
[1.0.12]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.11...v1.0.12
112119
[1.0.11]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.10...v1.0.11
113120
[1.0.10]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.9...v1.0.10
114121
[1.0.9]: https://github.com/openshift-hyperfleet/hyperfleet-api-spec/compare/v1.0.8...v1.0.9

CLAUDE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,15 @@ alias ClusterSpec = GCPClusterSpec;
188188

189189
Build: `npm run build:gcp`
190190

191+
## Version Bump and Changelog
192+
193+
When bumping the version in `main.tsp`, always update `CHANGELOG.md`:
194+
195+
1. Add a new section under `## [Unreleased]` with the new version and today's date
196+
2. List changes under appropriate headings (`Added`, `Changed`, `Fixed`, `Removed`)
197+
3. Update the comparison links at the bottom of the file
198+
4. Follow [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format
199+
191200
## Validation Checklist
192201

193202
Before submitting changes:

aliases.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aliases-gcp.tsp
1+
aliases-core.tsp

main.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ using OpenAPI;
2020
*
2121
*/
2222
@service(#{ title: "HyperFleet API" })
23-
@info(#{ version: "1.0.11", contact: #{ name: "HyperFleet Team" }, license: #{ name: "Apache 2.0" ,url: "https://www.apache.org/licenses/LICENSE-2.0"} })
23+
@info(#{ version: "1.0.12", contact: #{ name: "HyperFleet Team" }, license: #{ name: "Apache 2.0" ,url: "https://www.apache.org/licenses/LICENSE-2.0"} })
2424
@server("https://hyperfleet.redhat.com", "Production")
2525
@route("/api/hyperfleet/v1")
2626
namespace HyperFleet;

models/clusters/model.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ model ClusterStatus {
3939
*
4040
* These conditions are present immediately upon resource creation.
4141
*/
42-
@minItems(2)
42+
@minItems(3)
4343
conditions: ResourceCondition[];
4444
}
4545

models/nodepools/model.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ model NodePoolStatus {
3636
*
3737
* These conditions are present immediately upon resource creation.
3838
*/
39-
@minItems(2)
39+
@minItems(3)
4040
conditions: ResourceCondition[];
4141
}
4242

schemas/core/openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.0
22
info:
33
title: HyperFleet API
4-
version: 1.0.11
4+
version: 1.0.12
55
contact:
66
name: HyperFleet Team
77
license:
@@ -1305,7 +1305,7 @@ components:
13051305
type: array
13061306
items:
13071307
$ref: '#/components/schemas/ResourceCondition'
1308-
minItems: 2
1308+
minItems: 3
13091309
description: |-
13101310
List of status conditions for the cluster.
13111311
@@ -1671,7 +1671,7 @@ components:
16711671
type: array
16721672
items:
16731673
$ref: '#/components/schemas/ResourceCondition'
1674-
minItems: 2
1674+
minItems: 3
16751675
description: |-
16761676
List of status conditions for the nodepool.
16771677

schemas/core/swagger.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ info:
1616
name: Apache 2.0
1717
url: 'https://www.apache.org/licenses/LICENSE-2.0'
1818
title: HyperFleet API
19-
version: 1.0.11
19+
version: 1.0.12
2020
host: hyperfleet.redhat.com
2121
basePath: /
2222
schemes:
@@ -1503,7 +1503,7 @@ definitions:
15031503
These conditions are present immediately upon resource creation.
15041504
items:
15051505
$ref: '#/definitions/ResourceCondition'
1506-
minItems: 2
1506+
minItems: 3
15071507
type: array
15081508
required:
15091509
- conditions
@@ -1896,7 +1896,7 @@ definitions:
18961896
These conditions are present immediately upon resource creation.
18971897
items:
18981898
$ref: '#/definitions/ResourceCondition'
1899-
minItems: 2
1899+
minItems: 3
19001900
type: array
19011901
required:
19021902
- conditions

schemas/gcp/openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.0
22
info:
33
title: HyperFleet API
4-
version: 1.0.11
4+
version: 1.0.12
55
contact:
66
name: HyperFleet Team
77
license:
@@ -1257,7 +1257,7 @@ components:
12571257
type: array
12581258
items:
12591259
$ref: '#/components/schemas/ResourceCondition'
1260-
minItems: 2
1260+
minItems: 3
12611261
description: |-
12621262
List of status conditions for the cluster.
12631263
@@ -1748,7 +1748,7 @@ components:
17481748
type: array
17491749
items:
17501750
$ref: '#/components/schemas/ResourceCondition'
1751-
minItems: 2
1751+
minItems: 3
17521752
description: |-
17531753
List of status conditions for the nodepool.
17541754

schemas/gcp/swagger.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ info:
1616
name: Apache 2.0
1717
url: 'https://www.apache.org/licenses/LICENSE-2.0'
1818
title: HyperFleet API
19-
version: 1.0.11
19+
version: 1.0.12
2020
host: hyperfleet.redhat.com
2121
basePath: /
2222
schemes:
@@ -1438,7 +1438,7 @@ definitions:
14381438
These conditions are present immediately upon resource creation.
14391439
items:
14401440
$ref: '#/definitions/ResourceCondition'
1441-
minItems: 2
1441+
minItems: 3
14421442
type: array
14431443
required:
14441444
- conditions
@@ -1954,7 +1954,7 @@ definitions:
19541954
These conditions are present immediately upon resource creation.
19551955
items:
19561956
$ref: '#/definitions/ResourceCondition'
1957-
minItems: 2
1957+
minItems: 3
19581958
type: array
19591959
required:
19601960
- conditions

0 commit comments

Comments
 (0)