diff options
-rwxr-xr-x | deployments/build.sh | 2 | ||||
-rw-r--r-- | releases/0.8.1-container.yaml | 8 | ||||
-rw-r--r-- | src/k8splugin/api/configtemplatehandler.go | 9 |
3 files changed, 16 insertions, 3 deletions
diff --git a/deployments/build.sh b/deployments/build.sh index d2303654..97d0b12d 100755 --- a/deployments/build.sh +++ b/deployments/build.sh @@ -13,7 +13,7 @@ set -o pipefail k8s_path="$(git rev-parse --show-toplevel)" -VERSION="0.8.0-SNAPSHOT" +VERSION="0.9.0-SNAPSHOT" export IMAGE_NAME="nexus3.onap.org:10003/onap/multicloud/k8s" function _compile_src { diff --git a/releases/0.8.1-container.yaml b/releases/0.8.1-container.yaml new file mode 100644 index 00000000..3957193e --- /dev/null +++ b/releases/0.8.1-container.yaml @@ -0,0 +1,8 @@ +distribution_type: 'container' +container_release_tag: '0.8.1' +project: 'multicloud-k8s' +log_dir: 'multicloud-k8s-master-docker-golang-shell-daily/923/' +ref: 289ada89ffde602435ae924a9467d5361d4bfef0 +containers: + - name: 'multicloud/k8s' + version: '0.8.1-SNAPSHOT' diff --git a/src/k8splugin/api/configtemplatehandler.go b/src/k8splugin/api/configtemplatehandler.go index 641e4206..bd7c2db9 100644 --- a/src/k8splugin/api/configtemplatehandler.go +++ b/src/k8splugin/api/configtemplatehandler.go @@ -64,8 +64,13 @@ func (h rbTemplateHandler) createHandler(w http.ResponseWriter, r *http.Request) return } - w.WriteHeader(http.StatusNoContent) - + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusCreated) + err = json.NewEncoder(w).Encode(p) + if err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } } // uploadHandler handles upload of the template tar file into the database |