Skip to content

Commit

Permalink
Merge pull request #946 from nicksardo/glbc-remove-quota
Browse files Browse the repository at this point in the history
GLBC: Remove event message saying "Quota"
  • Loading branch information
nicksardo authored Jul 11, 2017
2 parents 9d08424 + e0d0771 commit 26fccdc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions controllers/gce/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package controller

import (
"fmt"
"net/http"
"reflect"
"sync"
"time"
Expand All @@ -37,7 +36,6 @@ import (
"k8s.io/client-go/tools/record"

"k8s.io/ingress/controllers/gce/loadbalancers"
"k8s.io/ingress/controllers/gce/utils"
)

var (
Expand Down Expand Up @@ -307,9 +305,6 @@ func (lbc *LoadBalancerController) sync(key string) (err error) {
if err := lbc.CloudClusterManager.Checkpoint(lbs, nodeNames, nodePorts); err != nil {
// TODO: Implement proper backoff for the queue.
eventMsg := "GCE"
if utils.IsHTTPErrorCode(err, http.StatusForbidden) {
eventMsg += " :Quota"
}
if ingExists {
lbc.recorder.Eventf(obj.(*extensions.Ingress), api_v1.EventTypeWarning, eventMsg, err.Error())
} else {
Expand Down

0 comments on commit 26fccdc

Please sign in to comment.