From 6e27e9716a7c74d921371186cebf278dad884f84 Mon Sep 17 00:00:00 2001 From: Martyn Ranyard Date: Mon, 16 Nov 2020 11:19:38 +0100 Subject: [PATCH] reset the file between pulls Signed-off-by: Martyn Ranyard --- cmd/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/main.go b/cmd/main.go index 7976dfb..0ccc6ef 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -150,6 +150,8 @@ func main() { } } + y = "" + fileString := "" for _, service := range services { serviceObject, err := clientset.CoreV1().Services(namespace).Get(service, metav1.GetOptions{}) if errors.IsNotFound(err) { @@ -175,6 +177,8 @@ func main() { } } + y = "" + fileString := "" for _, configmap := range configmaps { configmapObject, err := clientset.CoreV1().ConfigMaps(namespace).Get(configmap, metav1.GetOptions{}) if errors.IsNotFound(err) { @@ -200,6 +204,8 @@ func main() { } } + y = "" + fileString := "" for _, secret := range secrets { secretObject, err := clientset.CoreV1().Secrets(namespace).Get(secret, metav1.GetOptions{}) if errors.IsNotFound(err) { @@ -225,6 +231,8 @@ func main() { } } + y = "" + fileString := "" for _, ingress := range ingresses { ingressObject, err := clientset.ExtensionsV1beta1().Ingresses(namespace).Get(ingress, metav1.GetOptions{}) if errors.IsNotFound(err) {