Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
shipperctl: sync CRD openAPI validation with yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kanatohodets committed Dec 24, 2018
1 parent d1956ad commit 74488fb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pkg/crds/environment_validation.go
Expand Up @@ -9,9 +9,29 @@ var environmentValidation = apiextensionv1beta1.JSONSchemaProps{
Required: []string{
"clusterRequirements",
"strategy",
"chart",
"values",
},
Properties: map[string]apiextensionv1beta1.JSONSchemaProps{
"chart": apiextensionv1beta1.JSONSchemaProps{
Type: "object",
Required: []string{
"name",
"version",
"repoUrl",
},
Properties: map[string]apiextensionv1beta1.JSONSchemaProps{
"name": apiextensionv1beta1.JSONSchemaProps{
Type: "string",
},
"version": apiextensionv1beta1.JSONSchemaProps{
Type: "string",
},
"repoUrl": apiextensionv1beta1.JSONSchemaProps{
Type: "string",
},
},
},
"clusterRequirements": apiextensionv1beta1.JSONSchemaProps{
Type: "object",
Required: []string{
Expand Down

0 comments on commit 74488fb

Please sign in to comment.