Skip to content

Commit cae79d9

Browse files
localai-botmudler
andauthored
feat(swagger): update swagger (#9431)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
1 parent babbbc6 commit cae79d9

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

swagger/docs.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,6 +2408,23 @@ const docTemplate = `{
24082408
}
24092409
}
24102410
},
2411+
"gallery.NodeDriftInfo": {
2412+
"type": "object",
2413+
"properties": {
2414+
"digest": {
2415+
"type": "string"
2416+
},
2417+
"node_id": {
2418+
"type": "string"
2419+
},
2420+
"node_name": {
2421+
"type": "string"
2422+
},
2423+
"version": {
2424+
"type": "string"
2425+
}
2426+
}
2427+
},
24112428
"gallery.UpgradeInfo": {
24122429
"type": "object",
24132430
"properties": {
@@ -2425,6 +2442,13 @@ const docTemplate = `{
24252442
},
24262443
"installed_version": {
24272444
"type": "string"
2445+
},
2446+
"node_drift": {
2447+
"description": "NodeDrift lists nodes whose installed version or digest differs from\nthe cluster majority. Non-empty means the cluster has diverged and an\nupgrade will realign it. Empty in single-node mode.",
2448+
"type": "array",
2449+
"items": {
2450+
"$ref": "#/definitions/gallery.NodeDriftInfo"
2451+
}
24282452
}
24292453
}
24302454
},

swagger/swagger.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2405,6 +2405,23 @@
24052405
}
24062406
}
24072407
},
2408+
"gallery.NodeDriftInfo": {
2409+
"type": "object",
2410+
"properties": {
2411+
"digest": {
2412+
"type": "string"
2413+
},
2414+
"node_id": {
2415+
"type": "string"
2416+
},
2417+
"node_name": {
2418+
"type": "string"
2419+
},
2420+
"version": {
2421+
"type": "string"
2422+
}
2423+
}
2424+
},
24082425
"gallery.UpgradeInfo": {
24092426
"type": "object",
24102427
"properties": {
@@ -2422,6 +2439,13 @@
24222439
},
24232440
"installed_version": {
24242441
"type": "string"
2442+
},
2443+
"node_drift": {
2444+
"description": "NodeDrift lists nodes whose installed version or digest differs from\nthe cluster majority. Non-empty means the cluster has diverged and an\nupgrade will realign it. Empty in single-node mode.",
2445+
"type": "array",
2446+
"items": {
2447+
"$ref": "#/definitions/gallery.NodeDriftInfo"
2448+
}
24252449
}
24262450
}
24272451
},

swagger/swagger.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,17 @@ definitions:
157157
type: string
158158
type: array
159159
type: object
160+
gallery.NodeDriftInfo:
161+
properties:
162+
digest:
163+
type: string
164+
node_id:
165+
type: string
166+
node_name:
167+
type: string
168+
version:
169+
type: string
170+
type: object
160171
gallery.UpgradeInfo:
161172
properties:
162173
available_digest:
@@ -169,6 +180,14 @@ definitions:
169180
type: string
170181
installed_version:
171182
type: string
183+
node_drift:
184+
description: |-
185+
NodeDrift lists nodes whose installed version or digest differs from
186+
the cluster majority. Non-empty means the cluster has diverged and an
187+
upgrade will realign it. Empty in single-node mode.
188+
items:
189+
$ref: '#/definitions/gallery.NodeDriftInfo'
190+
type: array
172191
type: object
173192
galleryop.OpStatus:
174193
properties:

0 commit comments

Comments
 (0)