Skip to content

Commit dfcb3bc

Browse files
committed
fix: add compute_rke2_k8s_cluster_ha to HA config JSON schema
The high_availability_config.json schema only allows service_k8s_cluster_ha as a property. Add compute_rke2_k8s_cluster_ha with the same structure (cluster_name, enable_k8s_ha, virtual_ip_address) so the compute RKE2 HA configuration passes schema validation. Signed-off-by: John Lockman <jlockman3@gmail.com>
1 parent 74ab30e commit dfcb3bc

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

common/library/module_utils/input_validation/schema/high_availability_config.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,39 @@
3434
],
3535
"additionalProperties": false
3636
}
37+
},
38+
"compute_rke2_k8s_cluster_ha": {
39+
"type": "array",
40+
"description": "High Availability (HA) configuration for the compute RKE2 Kubernetes cluster.",
41+
"minItems": 1,
42+
"items": {
43+
"type": "object",
44+
"properties": {
45+
"cluster_name": {
46+
"type": "string",
47+
"minLength": 1,
48+
"description": "Required. Name of the compute RKE2 cluster. Must match the cluster name in omnia_config.yml."
49+
},
50+
"enable_k8s_ha": {
51+
"type": "boolean",
52+
"description": "Mandatory. Enable HA for the compute RKE2 cluster."
53+
},
54+
"virtual_ip_address": {
55+
"type": "string",
56+
"description": "Mandatory. Virtual IP address for the compute RKE2 cluster API endpoint.",
57+
"allOf": [
58+
{ "pattern": "^[0-9.]+$" },
59+
{ "format": "ipv4" }
60+
]
61+
}
62+
},
63+
"required": [
64+
"cluster_name",
65+
"enable_k8s_ha",
66+
"virtual_ip_address"
67+
],
68+
"additionalProperties": false
69+
}
3770
}
3871
},
3972
"required": [

0 commit comments

Comments
 (0)