Skip to content

Commit

Permalink
Merge pull request #6 from amazeeio/idling-annotation
Browse files Browse the repository at this point in the history
Remove idling annotations from ingress if they exist
  • Loading branch information
shreddedbacon authored Jul 30, 2021
2 parents b7ec3c4 + b03127a commit c3eb741
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handlers/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ func (h *Client) removeCodeFromIngress(ctx context.Context, ns string, opLog log
"metadata": map[string]interface{}{
"annotations": map[string]*string{
"nginx.ingress.kubernetes.io/custom-http-errors": newVals,
"idling.amazee.io/idled-at": nil,
"idling.amazee.io/idled": nil,
},
},
})
Expand Down

0 comments on commit c3eb741

Please sign in to comment.