From 4068b83937c490e638db0b8b0aceb8b7a88b7461 Mon Sep 17 00:00:00 2001 From: Konrad Bańka Date: Thu, 11 Mar 2021 10:44:32 +0100 Subject: Remove Hooks field from InstanceResponse http resp json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addition of hooks in instantiation response needs to be handled by other parties or else it may break connectivity. Because currently Hooks field doesn't provide any relevant public data, this change makes it hidden. Issue-ID: MULTICLOUD-1311 Signed-off-by: Konrad Bańka Change-Id: I4ca522cf8c6409ddf71fe06de0b905cfdf219a2f --- src/k8splugin/internal/app/instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/k8splugin/internal/app') diff --git a/src/k8splugin/internal/app/instance.go b/src/k8splugin/internal/app/instance.go index b90a6428..c3d3d207 100644 --- a/src/k8splugin/internal/app/instance.go +++ b/src/k8splugin/internal/app/instance.go @@ -52,7 +52,7 @@ type InstanceResponse struct { Namespace string `json:"namespace"` ReleaseName string `json:"release-name"` Resources []helm.KubernetesResource `json:"resources"` - Hooks []*protorelease.Hook `json:"hooks"` + Hooks []*protorelease.Hook `json:"-"` } // InstanceMiniResponse contains the response from instantiation -- cgit 1.2.3-korg