|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "type": "object", |
| 4 | + "properties": { |
| 5 | + "replicas": { |
| 6 | + "type": "object", |
| 7 | + "properties": { |
| 8 | + "metastore": { "type": "integer", "default": 1, "minimum": 1, "maximum": 5 } |
| 9 | + }, |
| 10 | + "required": ["metastore"], |
| 11 | + "description": "Number of replicas for each component." |
| 12 | + }, |
| 13 | + "resources": { |
| 14 | + "type": "object", |
| 15 | + "properties": { |
| 16 | + "metastore": { "$ref": "#/definitions/resourceSchema" } |
| 17 | + }, |
| 18 | + "required": ["metastore"], |
| 19 | + "description": "Resource requests and limits for each component." |
| 20 | + }, |
| 21 | + "storage": { |
| 22 | + "type": "object", |
| 23 | + "properties": { |
| 24 | + "metastore": { "type": "string", "default": "5Gi" } |
| 25 | + }, |
| 26 | + "required": ["metastore"], |
| 27 | + "description": "Storage requirements for each component." |
| 28 | + }, |
| 29 | + "serviceRefs": { |
| 30 | + "type": "object", |
| 31 | + "properties": { |
| 32 | + "hiveMysqlMetadb": { |
| 33 | + "type": "object", |
| 34 | + "properties": { |
| 35 | + "namespace": { "type": "string", "default": "default" }, |
| 36 | + "clusterServiceSelector": { |
| 37 | + "type": "object", |
| 38 | + "properties": { |
| 39 | + "cluster": { "type": "string", "default": "mysql-meta" }, |
| 40 | + "service": { |
| 41 | + "type": "object", |
| 42 | + "properties": { |
| 43 | + "component": { "type": "string", "default": "mysql" }, |
| 44 | + "service": { "type": "string", "default": "headless" }, |
| 45 | + "port": { "type": "string", "default": "client" } |
| 46 | + }, |
| 47 | + "required": ["component", "service", "port"] |
| 48 | + }, |
| 49 | + "credential": { |
| 50 | + "type": "object", |
| 51 | + "properties": { |
| 52 | + "component": { "type": "string", "default": "mysql" }, |
| 53 | + "name": { "type": "string", "default": "root" } |
| 54 | + }, |
| 55 | + "required": ["component", "name"] |
| 56 | + } |
| 57 | + }, |
| 58 | + "required": ["cluster", "service", "credential"] |
| 59 | + } |
| 60 | + }, |
| 61 | + "required": ["namespace", "clusterServiceSelector"], |
| 62 | + "description": "References to external services." |
| 63 | + } |
| 64 | + }, |
| 65 | + "required": ["hiveMysqlMetadb"], |
| 66 | + "description": "Service references for external dependencies." |
| 67 | + }, |
| 68 | + "serviceAccount": { |
| 69 | + "type": "object", |
| 70 | + "properties": { |
| 71 | + "name": { "type": "string", "default": "kb-hive-cluster" }, |
| 72 | + "create": { "type": "boolean", "default": true } |
| 73 | + }, |
| 74 | + "required": ["name", "create"], |
| 75 | + "description": "Configuration for the service account." |
| 76 | + }, |
| 77 | + "terminationPolicy": { |
| 78 | + "type": "string", |
| 79 | + "default": "Delete", |
| 80 | + "description": "Policy for terminating the release." |
| 81 | + }, |
| 82 | + "clusterDefinitionRef": { |
| 83 | + "type": "string", |
| 84 | + "default": "hive", |
| 85 | + "description": "Reference to the cluster definition." |
| 86 | + }, |
| 87 | + "topology": { |
| 88 | + "type": "string", |
| 89 | + "default": "hive-cluster", |
| 90 | + "description": "Cluster topology configuration." |
| 91 | + } |
| 92 | + }, |
| 93 | + "required": ["replicas", "resources", "storage", "serviceRefs", "serviceAccount", "terminationPolicy", "clusterDefinitionRef", "topology"], |
| 94 | + "definitions": { |
| 95 | + "resourceSchema": { |
| 96 | + "type": "object", |
| 97 | + "properties": { |
| 98 | + "requests": { |
| 99 | + "type": "object", |
| 100 | + "properties": { |
| 101 | + "cpu": { "type": "string", "default": "0.1" }, |
| 102 | + "memory": { "type": "string", "default": "0.5Gi" } |
| 103 | + }, |
| 104 | + "required": ["cpu", "memory"], |
| 105 | + "description": "Resource requests for the component." |
| 106 | + }, |
| 107 | + "limits": { |
| 108 | + "type": "object", |
| 109 | + "properties": { |
| 110 | + "cpu": { "type": "string", "default": "1" }, |
| 111 | + "memory": { "type": "string", "default": "2Gi" } |
| 112 | + }, |
| 113 | + "required": ["cpu", "memory"], |
| 114 | + "description": "Resource limits for the component." |
| 115 | + } |
| 116 | + }, |
| 117 | + "required": ["requests", "limits"], |
| 118 | + "description": "Resource configuration for a component." |
| 119 | + } |
| 120 | + }, |
| 121 | + "description": "Schema for Hive Helm chart values." |
| 122 | +} |
0 commit comments