Remove Hooks field from InstanceResponse http resp json 32/119132/1
authorKonrad Bańka <k.banka@samsung.com>
Thu, 11 Mar 2021 09:44:32 +0000 (10:44 +0100)
committerKonrad Bańka <k.banka@samsung.com>
Thu, 11 Mar 2021 09:45:03 +0000 (10:45 +0100)
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

src/k8splugin/internal/app/instance.go

index b90a642..c3d3d20 100644 (file)
@@ -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