summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Bańka <k.banka@samsung.com>2021-03-11 10:44:32 +0100
committerKonrad Bańka <k.banka@samsung.com>2021-03-11 10:45:03 +0100
commit4068b83937c490e638db0b8b0aceb8b7a88b7461 (patch)
tree39027926e55686ba69848ae3d6d5719b6832de44
parent68def373cb0e2a4fd5b0af867797cc39ac81b1e0 (diff)
Remove Hooks field from InstanceResponse http resp json
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 <k.banka@samsung.com> Change-Id: I4ca522cf8c6409ddf71fe06de0b905cfdf219a2f
-rw-r--r--src/k8splugin/internal/app/instance.go2
1 files changed, 1 insertions, 1 deletions
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