From 74488fb6c8087c0bae4af537968e08cf93c30b56 Mon Sep 17 00:00:00 2001 From: Ben Tyler Date: Fri, 21 Dec 2018 17:25:56 +0100 Subject: [PATCH] shipperctl: sync CRD openAPI validation with yaml --- pkg/crds/environment_validation.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pkg/crds/environment_validation.go b/pkg/crds/environment_validation.go index ec39256a3..ae95f561a 100644 --- a/pkg/crds/environment_validation.go +++ b/pkg/crds/environment_validation.go @@ -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{