From 6b0290d390485281231d1c76653b1da4ed1e91c7 Mon Sep 17 00:00:00 2001 From: Kamil Burzynski Date: Tue, 14 Aug 2018 21:54:47 +0200 Subject: [PATCH] Clarification of error message Just a small improvement to make users less confused. Though stronger fix is advisable. --- pkg/kube/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kube/client.go b/pkg/kube/client.go index 39187da42..c89fa649b 100644 --- a/pkg/kube/client.go +++ b/pkg/kube/client.go @@ -277,7 +277,7 @@ func (c *Client) Update(namespace string, originalReader, targetReader io.Reader originalInfo := original.Get(info) if originalInfo == nil { kind := info.Mapping.GroupVersionKind.Kind - return fmt.Errorf("no %s with the name %q found", kind, info.Name) + return fmt.Errorf("no %s with the name %q found in previous release, but it already exist in kubernetes", kind, info.Name) } if err := updateResource(c, info, originalInfo.Object, force, recreate); err != nil {