|
82 | 82 | and `stopped` will take no effect until `reconciliationPaused` is set to false or removed. |
83 | 83 | type: boolean |
84 | 84 | type: object |
| 85 | + configOverrides: |
| 86 | + default: {} |
| 87 | + description: |- |
| 88 | + Typed config override strategies for Dummy config files. |
| 89 | +
|
| 90 | + Demonstrates both JSON-formatted (`config.json`) and key-value-formatted |
| 91 | + (`dummy.properties`) config file overrides. |
| 92 | + properties: |
| 93 | + config.json: |
| 94 | + description: Overrides for the `config.json` file. |
| 95 | + nullable: true |
| 96 | + oneOf: |
| 97 | + - required: |
| 98 | + - jsonMergePatch |
| 99 | + - required: |
| 100 | + - jsonPatches |
| 101 | + - required: |
| 102 | + - userProvided |
| 103 | + properties: |
| 104 | + jsonMergePatch: |
| 105 | + description: |- |
| 106 | + Can be set to arbitrary YAML content, which is converted to JSON and used as |
| 107 | + [RFC 7396](https://datatracker.ietf.org/doc/html/rfc7396) JSON merge patch. |
| 108 | + type: object |
| 109 | + x-kubernetes-preserve-unknown-fields: true |
| 110 | + jsonPatches: |
| 111 | + description: |- |
| 112 | + List of [RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902) JSON patches. |
| 113 | +
|
| 114 | + Can be used when more flexibility is needed, e.g. to only modify elements |
| 115 | + in a list based on a condition. |
| 116 | +
|
| 117 | + A patch looks something like |
| 118 | +
|
| 119 | + `{"op": "test", "path": "/0/name", "value": "Andrew"}` |
| 120 | +
|
| 121 | + or |
| 122 | +
|
| 123 | + `{"op": "add", "path": "/0/happy", "value": true}` |
| 124 | + items: |
| 125 | + type: string |
| 126 | + type: array |
| 127 | + userProvided: |
| 128 | + description: Override the entire config file with the specified String. |
| 129 | + type: string |
| 130 | + type: object |
| 131 | + dummy.properties: |
| 132 | + additionalProperties: |
| 133 | + type: string |
| 134 | + description: Overrides for the `dummy.properties` file. |
| 135 | + nullable: true |
| 136 | + type: object |
| 137 | + type: object |
85 | 138 | domainName: |
86 | 139 | description: A validated domain name type conforming to RFC 1123, so e.g. not an IP address |
87 | 140 | type: string |
@@ -164,56 +217,9 @@ spec: |
164 | 217 | type: object |
165 | 218 | hostName: |
166 | 219 | type: string |
167 | | - jsonConfigOverrides: |
168 | | - nullable: true |
169 | | - oneOf: |
170 | | - - required: |
171 | | - - jsonMergePatch |
172 | | - - required: |
173 | | - - jsonPatches |
174 | | - - required: |
175 | | - - userProvided |
176 | | - properties: |
177 | | - jsonMergePatch: |
178 | | - description: |- |
179 | | - Can be set to arbitrary YAML content, which is converted to JSON and used as |
180 | | - [RFC 7396](https://datatracker.ietf.org/doc/html/rfc7396) JSON merge patch. |
181 | | - type: object |
182 | | - x-kubernetes-preserve-unknown-fields: true |
183 | | - jsonPatches: |
184 | | - description: |- |
185 | | - List of [RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902) JSON patches. |
186 | | -
|
187 | | - Can be used when more flexibility is needed, e.g. to only modify elements |
188 | | - in a list based on a condition. |
189 | | -
|
190 | | - A patch looks something like |
191 | | -
|
192 | | - `{"op": "test", "path": "/0/name", "value": "Andrew"}` |
193 | | -
|
194 | | - or |
195 | | -
|
196 | | - `{"op": "add", "path": "/0/happy", "value": true}` |
197 | | - items: |
198 | | - type: string |
199 | | - type: array |
200 | | - userProvided: |
201 | | - description: Override the entire config file with the specified String. |
202 | | - type: string |
203 | | - type: object |
204 | 220 | kerberosRealmName: |
205 | 221 | description: A validated kerberos realm name type, for use in CRDs. |
206 | 222 | type: string |
207 | | - keyValueConfigOverrides: |
208 | | - additionalProperties: |
209 | | - type: string |
210 | | - description: |- |
211 | | - Flat key-value overrides for `*.properties`, Hadoop XML, etc. |
212 | | -
|
213 | | - This is backwards-compatible with the existing flat key-value YAML format |
214 | | - used by `HashMap<String, String>`. |
215 | | - nullable: true |
216 | | - type: object |
217 | 223 | nodes: |
218 | 224 | description: |- |
219 | 225 | This struct represents a role - e.g. HDFS datanodes or Trino workers. It has a key-value-map containing |
@@ -760,16 +766,57 @@ spec: |
760 | 766 | type: object |
761 | 767 | type: object |
762 | 768 | configOverrides: |
763 | | - additionalProperties: |
764 | | - additionalProperties: |
765 | | - type: string |
766 | | - type: object |
767 | 769 | description: |- |
768 | 770 | The `configOverrides` can be used to configure properties in product config files |
769 | 771 | that are not exposed in the CRD. Read the |
770 | 772 | [config overrides documentation](https://docs.stackable.tech/home/nightly/concepts/overrides#config-overrides) |
771 | 773 | and consult the operator specific usage guide documentation for details on the |
772 | 774 | available config files and settings for the specific product. |
| 775 | + properties: |
| 776 | + config.json: |
| 777 | + description: Overrides for the `config.json` file. |
| 778 | + nullable: true |
| 779 | + oneOf: |
| 780 | + - required: |
| 781 | + - jsonMergePatch |
| 782 | + - required: |
| 783 | + - jsonPatches |
| 784 | + - required: |
| 785 | + - userProvided |
| 786 | + properties: |
| 787 | + jsonMergePatch: |
| 788 | + description: |- |
| 789 | + Can be set to arbitrary YAML content, which is converted to JSON and used as |
| 790 | + [RFC 7396](https://datatracker.ietf.org/doc/html/rfc7396) JSON merge patch. |
| 791 | + type: object |
| 792 | + x-kubernetes-preserve-unknown-fields: true |
| 793 | + jsonPatches: |
| 794 | + description: |- |
| 795 | + List of [RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902) JSON patches. |
| 796 | +
|
| 797 | + Can be used when more flexibility is needed, e.g. to only modify elements |
| 798 | + in a list based on a condition. |
| 799 | +
|
| 800 | + A patch looks something like |
| 801 | +
|
| 802 | + `{"op": "test", "path": "/0/name", "value": "Andrew"}` |
| 803 | +
|
| 804 | + or |
| 805 | +
|
| 806 | + `{"op": "add", "path": "/0/happy", "value": true}` |
| 807 | + items: |
| 808 | + type: string |
| 809 | + type: array |
| 810 | + userProvided: |
| 811 | + description: Override the entire config file with the specified String. |
| 812 | + type: string |
| 813 | + type: object |
| 814 | + dummy.properties: |
| 815 | + additionalProperties: |
| 816 | + type: string |
| 817 | + description: Overrides for the `dummy.properties` file. |
| 818 | + nullable: true |
| 819 | + type: object |
773 | 820 | type: object |
774 | 821 | envOverrides: |
775 | 822 | additionalProperties: |
@@ -1371,16 +1418,57 @@ spec: |
1371 | 1418 | type: object |
1372 | 1419 | type: object |
1373 | 1420 | configOverrides: |
1374 | | - additionalProperties: |
1375 | | - additionalProperties: |
1376 | | - type: string |
1377 | | - type: object |
1378 | 1421 | description: |- |
1379 | 1422 | The `configOverrides` can be used to configure properties in product config files |
1380 | 1423 | that are not exposed in the CRD. Read the |
1381 | 1424 | [config overrides documentation](https://docs.stackable.tech/home/nightly/concepts/overrides#config-overrides) |
1382 | 1425 | and consult the operator specific usage guide documentation for details on the |
1383 | 1426 | available config files and settings for the specific product. |
| 1427 | + properties: |
| 1428 | + config.json: |
| 1429 | + description: Overrides for the `config.json` file. |
| 1430 | + nullable: true |
| 1431 | + oneOf: |
| 1432 | + - required: |
| 1433 | + - jsonMergePatch |
| 1434 | + - required: |
| 1435 | + - jsonPatches |
| 1436 | + - required: |
| 1437 | + - userProvided |
| 1438 | + properties: |
| 1439 | + jsonMergePatch: |
| 1440 | + description: |- |
| 1441 | + Can be set to arbitrary YAML content, which is converted to JSON and used as |
| 1442 | + [RFC 7396](https://datatracker.ietf.org/doc/html/rfc7396) JSON merge patch. |
| 1443 | + type: object |
| 1444 | + x-kubernetes-preserve-unknown-fields: true |
| 1445 | + jsonPatches: |
| 1446 | + description: |- |
| 1447 | + List of [RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902) JSON patches. |
| 1448 | +
|
| 1449 | + Can be used when more flexibility is needed, e.g. to only modify elements |
| 1450 | + in a list based on a condition. |
| 1451 | +
|
| 1452 | + A patch looks something like |
| 1453 | +
|
| 1454 | + `{"op": "test", "path": "/0/name", "value": "Andrew"}` |
| 1455 | +
|
| 1456 | + or |
| 1457 | +
|
| 1458 | + `{"op": "add", "path": "/0/happy", "value": true}` |
| 1459 | + items: |
| 1460 | + type: string |
| 1461 | + type: array |
| 1462 | + userProvided: |
| 1463 | + description: Override the entire config file with the specified String. |
| 1464 | + type: string |
| 1465 | + type: object |
| 1466 | + dummy.properties: |
| 1467 | + additionalProperties: |
| 1468 | + type: string |
| 1469 | + description: Overrides for the `dummy.properties` file. |
| 1470 | + nullable: true |
| 1471 | + type: object |
1384 | 1472 | type: object |
1385 | 1473 | envOverrides: |
1386 | 1474 | additionalProperties: |
|
0 commit comments