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

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
main
Martyn 2 years ago
parent 4077775bb7
commit 6e27e9716a
  1. 8
      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) {

Loading…
Cancel
Save