From a73b42b9c3877f1a34939d85941482f7f5c44db9 Mon Sep 17 00:00:00 2001 From: Lukasz Rajewski Date: Mon, 7 Feb 2022 19:34:25 +0100 Subject: Upgrade handler implementation Implementation of the upgrade handler for the instance. As a result, exsting instance is modified, resources upated and lefovers removed from the cluster. Issue-ID: MULTICLOUD-1444 Signed-off-by: Lukasz Rajewski Change-Id: I4122ee12d9332eaeb5ee016446b3da2bbe94bd2d --- src/k8splugin/internal/namegenerator/namegenerator.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/k8splugin/internal/namegenerator') diff --git a/src/k8splugin/internal/namegenerator/namegenerator.go b/src/k8splugin/internal/namegenerator/namegenerator.go index 0a49633a..8eb89546 100644 --- a/src/k8splugin/internal/namegenerator/namegenerator.go +++ b/src/k8splugin/internal/namegenerator/namegenerator.go @@ -142,6 +142,9 @@ func (c *cache) generateName() string { } func (c *cache) releaseName(name string) { + if name == "" { + return + } c.mux.Lock() defer c.mux.Unlock() -- cgit 1.2.3-korg