cover validation in docs and export it in crds.go

This commit is contained in:
Felix Kunde
2019-11-26 11:16:02 +01:00
parent 4d3dce2968
commit 37f7b542f3
2 changed files with 8 additions and 4 deletions
+6 -4
View File
@@ -107,7 +107,8 @@ var min0 = 0.0
var min1 = 1.0
var minDisable = -1.0
var postgresCRDResourceValidation = apiextv1beta1.JSONSchemaProps{
// PostgresCRDResourceValidation to check applied manifest parameters
var PostgresCRDResourceValidation = apiextv1beta1.JSONSchemaProps{
Type: "object",
Required: []string{"spec"},
Properties: map[string]apiextv1beta1.JSONSchemaProps{
@@ -520,7 +521,8 @@ var postgresCRDResourceValidation = apiextv1beta1.JSONSchemaProps{
},
}
var operatorConfigCRDResourceValidation = apiextv1beta1.JSONSchemaProps{
// OperatorConfigCRDResourceValidation to check applied manifest parameters
var OperatorConfigCRDResourceValidation = apiextv1beta1.JSONSchemaProps{
Type: "object",
Required: []string{"configuration"},
Properties: map[string]apiextv1beta1.JSONSchemaProps{
@@ -920,7 +922,7 @@ func PostgresCRD() *apiextv1beta1.CustomResourceDefinition {
PostgresCRDResourcePlural,
PostgresCRDResourceShort,
PostgresCRDResourceColumns,
postgresCRDResourceValidation)
PostgresCRDResourceValidation)
}
// ConfigurationCRD returns CustomResourceDefinition built from OperatorConfigCRDResource
@@ -930,5 +932,5 @@ func ConfigurationCRD() *apiextv1beta1.CustomResourceDefinition {
OperatorConfigCRDResourcePlural,
OperatorConfigCRDResourceShort,
OperatorConfigCRDResourceColumns,
operatorConfigCRDResourceValidation)
OperatorConfigCRDResourceValidation)
}