refactor: Big internal refactor

This commit is contained in:
2026-04-01 06:18:57 +02:00
parent dfeb55375e
commit 8e7d0d3a5e
11 changed files with 240 additions and 201 deletions
+9 -25
View File
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "OptionalCluster",
"title": "Cluster",
"type": "object",
"properties": {
"base": {
@@ -11,8 +11,7 @@
{
"type": "null"
}
],
"writeOnly": true
]
},
"clusterEnv": {
"anyOf": [
@@ -32,8 +31,7 @@
"format": "ipv4"
},
"default": {
"$ref": "#/$defs/OptionalNode",
"writeOnly": true
"$ref": "#/$defs/OptionalNodeDeserialize"
},
"nodes": {
"type": [
@@ -41,7 +39,7 @@
"null"
],
"items": {
"$ref": "#/$defs/NodeEntry"
"type": "string"
}
},
"secretsFile": {
@@ -76,13 +74,6 @@
"amd64"
]
},
"NodeEntry": {
"anyOf": [
{
"type": "string"
}
]
},
"NodeType": {
"type": "string",
"enum": [
@@ -196,7 +187,7 @@
},
"additionalProperties": false
},
"OptionalNode": {
"OptionalNodeDeserialize": {
"type": "object",
"properties": {
"arch": {
@@ -296,7 +287,7 @@
"null"
],
"items": {
"$ref": "#/$defs/Patch"
"type": "string"
}
},
"controlPlane": {
@@ -305,7 +296,7 @@
"null"
],
"items": {
"$ref": "#/$defs/Patch"
"type": "string"
}
}
},
@@ -366,26 +357,19 @@
},
"additionalProperties": false
},
"Patch": {
"anyOf": [
{
"type": "string"
}
]
},
"Patches": {
"type": "object",
"properties": {
"all": {
"type": "array",
"items": {
"$ref": "#/$defs/Patch"
"type": "string"
}
},
"controlPlane": {
"type": "array",
"items": {
"$ref": "#/$defs/Patch"
"type": "string"
}
}
},
+3 -10
View File
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "OptionalNode",
"title": "Node",
"type": "object",
"properties": {
"arch": {
@@ -192,7 +192,7 @@
"null"
],
"items": {
"$ref": "#/$defs/Patch"
"type": "string"
}
},
"controlPlane": {
@@ -201,7 +201,7 @@
"null"
],
"items": {
"$ref": "#/$defs/Patch"
"type": "string"
}
}
},
@@ -236,13 +236,6 @@
},
"additionalProperties": false
},
"Patch": {
"anyOf": [
{
"type": "string"
}
]
},
"Schematic": {
"type": "string"
},