reset the file between pulls
continuous-integration/drone/push Build is failing Details

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2020-11-16 11:19:38 +01:00
parent 4077775bb7
commit 6e27e9716a
1 changed files with 8 additions and 0 deletions

View File

@ -150,6 +150,8 @@ func main() {
} }
} }
y = ""
fileString := ""
for _, service := range services { for _, service := range services {
serviceObject, err := clientset.CoreV1().Services(namespace).Get(service, metav1.GetOptions{}) serviceObject, err := clientset.CoreV1().Services(namespace).Get(service, metav1.GetOptions{})
if errors.IsNotFound(err) { if errors.IsNotFound(err) {
@ -175,6 +177,8 @@ func main() {
} }
} }
y = ""
fileString := ""
for _, configmap := range configmaps { for _, configmap := range configmaps {
configmapObject, err := clientset.CoreV1().ConfigMaps(namespace).Get(configmap, metav1.GetOptions{}) configmapObject, err := clientset.CoreV1().ConfigMaps(namespace).Get(configmap, metav1.GetOptions{})
if errors.IsNotFound(err) { if errors.IsNotFound(err) {
@ -200,6 +204,8 @@ func main() {
} }
} }
y = ""
fileString := ""
for _, secret := range secrets { for _, secret := range secrets {
secretObject, err := clientset.CoreV1().Secrets(namespace).Get(secret, metav1.GetOptions{}) secretObject, err := clientset.CoreV1().Secrets(namespace).Get(secret, metav1.GetOptions{})
if errors.IsNotFound(err) { if errors.IsNotFound(err) {
@ -225,6 +231,8 @@ func main() {
} }
} }
y = ""
fileString := ""
for _, ingress := range ingresses { for _, ingress := range ingresses {
ingressObject, err := clientset.ExtensionsV1beta1().Ingresses(namespace).Get(ingress, metav1.GetOptions{}) ingressObject, err := clientset.ExtensionsV1beta1().Ingresses(namespace).Get(ingress, metav1.GetOptions{})
if errors.IsNotFound(err) { if errors.IsNotFound(err) {