From f70a3d22ce65e9c17a99fc921d350fbcbe146332 Mon Sep 17 00:00:00 2001 From: Kiran Kamineni Date: Mon, 11 Mar 2019 16:32:20 -0700 Subject: Detect chart name ChartName should not be mandatory field If not provided it will be detected by inspection of the tar.gz archive. Issue-ID: MULTICLOUD-525 Change-Id: Idaf9672f2cbbb882d78b1987467472ce73c651da Signed-off-by: Kiran Kamineni --- src/k8splugin/api/defhandler.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/k8splugin/api/defhandler.go') diff --git a/src/k8splugin/api/defhandler.go b/src/k8splugin/api/defhandler.go index 21e5e768..44521dd1 100644 --- a/src/k8splugin/api/defhandler.go +++ b/src/k8splugin/api/defhandler.go @@ -54,12 +54,6 @@ func (h rbDefinitionHandler) createHandler(w http.ResponseWriter, r *http.Reques return } - // Chart Name is required - if v.ChartName == "" { - http.Error(w, "Missing chart name in POST request", http.StatusBadRequest) - return - } - ret, err := h.client.Create(v) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) -- cgit 1.2.3-korg