refactor: Big internal refactor
This commit is contained in:
+9
-25
@@ -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
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user