add supoort for initContainers and sidecars
This commit is contained in:
		
							parent
							
								
									9e942b4920
								
							
						
					
					
						commit
						2f0facd2f5
					
				|  | @ -124,6 +124,18 @@ spec: | |||
|               type: boolean | ||||
|             enableShmVolume: | ||||
|               type: boolean | ||||
|             init_containers:  # deprecated | ||||
|               type: array | ||||
|               nullable: true | ||||
|               items: | ||||
|                 type: object | ||||
|                 additionalProperties: true | ||||
|             initContainers: | ||||
|               type: array | ||||
|               nullable: true | ||||
|               items: | ||||
|                 type: object | ||||
|                 additionalProperties: true | ||||
|             logicalBackupSchedule: | ||||
|               type: string | ||||
|               pattern: '^(\d+|\*)(/\d+)?(\s+(\d+|\*)(/\d+)?){4}$' | ||||
|  | @ -253,6 +265,12 @@ spec: | |||
|                       pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$' | ||||
|                       # Note: the value specified here must not be zero or be higher | ||||
|                       # than the corresponding limit. | ||||
|             sidecars: | ||||
|               type: array | ||||
|               nullable: true | ||||
|               items: | ||||
|                 type: object | ||||
|                 additionalProperties: true | ||||
|             spiloFSGroup: | ||||
|               type: integer | ||||
|             standby: | ||||
|  |  | |||
|  | @ -36,7 +36,6 @@ spec: | |||
|             - numberOfInstances | ||||
|             - teamId | ||||
|             - postgresql | ||||
|           additionalProperties: true | ||||
|           properties: | ||||
|             allowedSourceRanges: | ||||
|               type: array | ||||
|  | @ -85,6 +84,18 @@ spec: | |||
|               type: boolean | ||||
|             enableShmVolume: | ||||
|               type: boolean | ||||
|             init_containers:  # deprecated | ||||
|               type: array | ||||
|               nullable: true | ||||
|               items: | ||||
|                 type: object | ||||
|                 additionalProperties: true | ||||
|             initContainers: | ||||
|               type: array | ||||
|               nullable: true | ||||
|               items: | ||||
|                 type: object | ||||
|                 additionalProperties: true | ||||
|             logicalBackupSchedule: | ||||
|               type: string | ||||
|               pattern: '^(\d+|\*)(/\d+)?(\s+(\d+|\*)(/\d+)?){4}$' | ||||
|  | @ -214,6 +225,12 @@ spec: | |||
|                       pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$' | ||||
|                       # Note: the value specified here must not be zero or be higher | ||||
|                       # than the corresponding limit. | ||||
|             sidecars: | ||||
|               type: array | ||||
|               nullable: true | ||||
|               items: | ||||
|                 type: object | ||||
|                 additionalProperties: true | ||||
|             spiloFSGroup: | ||||
|               type: integer | ||||
|             standby: | ||||
|  |  | |||
|  | @ -199,6 +199,29 @@ var PostgresCRDResourceValidation = apiextv1beta1.JSONSchemaProps{ | |||
| 				"enableShmVolume": { | ||||
| 					Type: "boolean", | ||||
| 				}, | ||||
| 				"init_containers": { | ||||
| 					Type:        "array", | ||||
| 					Description: "Deprecated", | ||||
| 					Items: &apiextv1beta1.JSONSchemaPropsOrArray{ | ||||
| 						Schema: &apiextv1beta1.JSONSchemaProps{ | ||||
| 							Type: "object", | ||||
| 							AdditionalProperties: &apiextv1beta1.JSONSchemaPropsOrBool{ | ||||
| 								Allows: true, | ||||
| 							}, | ||||
| 						}, | ||||
| 					}, | ||||
| 				}, | ||||
| 				"initContainers": { | ||||
| 					Type: "array", | ||||
| 					Items: &apiextv1beta1.JSONSchemaPropsOrArray{ | ||||
| 						Schema: &apiextv1beta1.JSONSchemaProps{ | ||||
| 							Type: "object", | ||||
| 							AdditionalProperties: &apiextv1beta1.JSONSchemaPropsOrBool{ | ||||
| 								Allows: true, | ||||
| 							}, | ||||
| 						}, | ||||
| 					}, | ||||
| 				}, | ||||
| 				"logicalBackupSchedule": { | ||||
| 					Type:    "string", | ||||
| 					Pattern: "^(\\d+|\\*)(/\\d+)?(\\s+(\\d+|\\*)(/\\d+)?){4}$", | ||||
|  | @ -351,6 +374,17 @@ var PostgresCRDResourceValidation = apiextv1beta1.JSONSchemaProps{ | |||
| 						}, | ||||
| 					}, | ||||
| 				}, | ||||
| 				"sidecars": { | ||||
| 					Type: "array", | ||||
| 					Items: &apiextv1beta1.JSONSchemaPropsOrArray{ | ||||
| 						Schema: &apiextv1beta1.JSONSchemaProps{ | ||||
| 							Type: "object", | ||||
| 							AdditionalProperties: &apiextv1beta1.JSONSchemaPropsOrBool{ | ||||
| 								Allows: true, | ||||
| 							}, | ||||
| 						}, | ||||
| 					}, | ||||
| 				}, | ||||
| 				"spiloFSGroup": { | ||||
| 					Type: "integer", | ||||
| 				}, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue