enable validation and extend doc reference

This commit is contained in:
Felix Kunde
2020-07-31 10:02:12 +02:00
parent d5b7c94ba3
commit 998279a25f
4 changed files with 79 additions and 3 deletions
+30 -1
View File
@@ -911,6 +911,35 @@ var OperatorConfigCRDResourceValidation = apiextv1beta1.CustomResourceValidation
"infrastructure_roles_secret_name": {
Type: "string",
},
"infrastructure_roles_secrets": {
Type: "array",
Items: &apiextv1beta1.JSONSchemaPropsOrArray{
Schema: &apiextv1beta1.JSONSchemaProps{
Type: "object",
Required: []string{"secretname"},
Properties: map[string]apiextv1beta1.JSONSchemaProps{
"secretname": {
Type: "string",
},
"name": {
Type: "string",
},
"password": {
Type: "string",
},
"role": {
Type: "string",
},
"details": {
Type: "string",
},
"template": {
Type: "boolean",
},
},
},
},
},
"inherited_labels": {
Type: "array",
Items: &apiextv1beta1.JSONSchemaPropsOrArray{
@@ -980,7 +1009,7 @@ var OperatorConfigCRDResourceValidation = apiextv1beta1.CustomResourceValidation
"spilo_privileged": {
Type: "boolean",
},
"storage_resize_mode": {
"storage_resize_mode": {
Type: "string",
Enum: []apiextv1beta1.JSON{
{