Skip to content

Commit

Permalink
DeepEqual compare against kubernetes resources isnt possible, see issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Payback159 committed Mar 2, 2022
1 parent 2c312b7 commit fcaac78
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"math/rand"
"net/http"
"os"
"reflect"
"strings"
"time"

Expand Down Expand Up @@ -230,11 +229,6 @@ func (server *clientsetStruct) createResponseJob(message HookMessage, status str
http.Error(httpwriter, "Webhook error creating a job", 500)
return
}
if !reflect.DeepEqual(jobObject, batchv1.Job{}) {
log.Printf("Error while DeepEqual check")
http.Error(httpwriter, "Webhook error creating a job", 500)
return
}

//Adding randomString to avoid name conflict
jobObject.SetName(jobObject.Name + "-" + randomstring)
Expand Down

0 comments on commit fcaac78

Please sign in to comment.