enable CRD validation for new field
This commit is contained in:
		
							parent
							
								
									1a8862e545
								
							
						
					
					
						commit
						fa6faaf9e9
					
				| 
						 | 
				
			
			@ -196,6 +196,26 @@ spec:
 | 
			
		|||
                  type: object
 | 
			
		||||
                  additionalProperties:
 | 
			
		||||
                    type: string
 | 
			
		||||
            preparedDatabases:
 | 
			
		||||
              type: object
 | 
			
		||||
              additionalProperties:
 | 
			
		||||
                type: object
 | 
			
		||||
                properties:
 | 
			
		||||
                  defaultUsers:
 | 
			
		||||
                    type: boolean
 | 
			
		||||
                  extensions:
 | 
			
		||||
                    type: object
 | 
			
		||||
                    additionalProperties:
 | 
			
		||||
                      type: string
 | 
			
		||||
                  schemas:
 | 
			
		||||
                    type: object
 | 
			
		||||
                    additionalProperties:
 | 
			
		||||
                      type: object
 | 
			
		||||
                      properties:
 | 
			
		||||
                        defaultUsers:
 | 
			
		||||
                          type: boolean
 | 
			
		||||
                        defaultRoles:
 | 
			
		||||
                          type: boolean
 | 
			
		||||
            replicaLoadBalancer:  # deprecated
 | 
			
		||||
              type: boolean
 | 
			
		||||
            resources:
 | 
			
		||||
| 
						 | 
				
			
			@ -266,6 +286,10 @@ 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.
 | 
			
		||||
            serviceAnnotations:
 | 
			
		||||
              type: object
 | 
			
		||||
              additionalProperties:
 | 
			
		||||
                type: string
 | 
			
		||||
            sidecars:
 | 
			
		||||
              type: array
 | 
			
		||||
              nullable: true
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -160,6 +160,26 @@ spec:
 | 
			
		|||
                  type: object
 | 
			
		||||
                  additionalProperties:
 | 
			
		||||
                    type: string
 | 
			
		||||
            preparedDatabases:
 | 
			
		||||
              type: object
 | 
			
		||||
              additionalProperties:
 | 
			
		||||
                type: object
 | 
			
		||||
                properties:
 | 
			
		||||
                  defaultUsers:
 | 
			
		||||
                    type: boolean
 | 
			
		||||
                  extensions:
 | 
			
		||||
                    type: object
 | 
			
		||||
                    additionalProperties:
 | 
			
		||||
                      type: string
 | 
			
		||||
                  schemas:
 | 
			
		||||
                    type: object
 | 
			
		||||
                    additionalProperties:
 | 
			
		||||
                      type: object
 | 
			
		||||
                      properties:
 | 
			
		||||
                        defaultUsers:
 | 
			
		||||
                          type: boolean
 | 
			
		||||
                        defaultRoles:
 | 
			
		||||
                          type: boolean
 | 
			
		||||
            replicaLoadBalancer:  # deprecated
 | 
			
		||||
              type: boolean
 | 
			
		||||
            resources:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -341,6 +341,43 @@ var PostgresCRDResourceValidation = apiextv1beta1.CustomResourceValidation{
 | 
			
		|||
							},
 | 
			
		||||
						},
 | 
			
		||||
					},
 | 
			
		||||
					"preparedDatabases": {
 | 
			
		||||
						Type: "object",
 | 
			
		||||
						AdditionalProperties: &apiextv1beta1.JSONSchemaPropsOrBool{
 | 
			
		||||
							Schema: &apiextv1beta1.JSONSchemaProps{
 | 
			
		||||
								Type: "object",
 | 
			
		||||
								Properties: map[string]apiextv1beta1.JSONSchemaProps{
 | 
			
		||||
									"defaultUsers": {
 | 
			
		||||
										Type: "boolean",
 | 
			
		||||
									},
 | 
			
		||||
									"extensions": {
 | 
			
		||||
										Type: "object",
 | 
			
		||||
										AdditionalProperties: &apiextv1beta1.JSONSchemaPropsOrBool{
 | 
			
		||||
											Schema: &apiextv1beta1.JSONSchemaProps{
 | 
			
		||||
												Type: "string",
 | 
			
		||||
											},
 | 
			
		||||
										},
 | 
			
		||||
									},
 | 
			
		||||
									"schemas": {
 | 
			
		||||
										Type: "object",
 | 
			
		||||
										AdditionalProperties: &apiextv1beta1.JSONSchemaPropsOrBool{
 | 
			
		||||
											Schema: &apiextv1beta1.JSONSchemaProps{
 | 
			
		||||
												Type: "object",
 | 
			
		||||
												Properties: map[string]apiextv1beta1.JSONSchemaProps{
 | 
			
		||||
													"defaultUsers": {
 | 
			
		||||
														Type: "boolean",
 | 
			
		||||
													},
 | 
			
		||||
													"defaultRoles": {
 | 
			
		||||
														Type: "boolean",
 | 
			
		||||
													},
 | 
			
		||||
												},
 | 
			
		||||
											},
 | 
			
		||||
										},
 | 
			
		||||
									},
 | 
			
		||||
								},
 | 
			
		||||
							},
 | 
			
		||||
						},
 | 
			
		||||
					},
 | 
			
		||||
					"replicaLoadBalancer": {
 | 
			
		||||
						Type:        "boolean",
 | 
			
		||||
						Description: "Deprecated",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue