Fix gofmt errors

Signed-off-by: z1cheng <imchench@gmail.com>
This commit is contained in:
z1cheng 2023-06-25 08:14:06 +00:00 committed by k8s-infra-cherrypick-robot
parent 2bb2d9ef15
commit 78a7dedbad
4 changed files with 5 additions and 5 deletions

View file

@ -18,10 +18,10 @@ package main
import ( import (
"fmt" "fmt"
"net/http"
"os"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors" "github.com/prometheus/client_golang/prometheus/collectors"
"net/http"
"os"
"k8s.io/klog/v2" "k8s.io/klog/v2"

View file

@ -91,7 +91,7 @@ const (
// Configuration represents the content of nginx.conf file // Configuration represents the content of nginx.conf file
type Configuration struct { type Configuration struct {
defaults.Backend `json:",squash"` defaults.Backend
// AllowSnippetAnnotations enable users to add their own snippets via ingress annotation. // AllowSnippetAnnotations enable users to add their own snippets via ingress annotation.
// If disabled, only snippets added via ConfigMap are added to ingress. // If disabled, only snippets added via ConfigMap are added to ingress.

View file

@ -248,7 +248,7 @@ type NGINXController struct {
store store.Storer store store.Storer
metricCollector metric.Collector metricCollector metric.Collector
validationWebhookServer *http.Server validationWebhookServer *http.Server

View file

@ -35,4 +35,4 @@ func (c *chain) fail(message string, args ...interface{}) {
} }
c.failbit = true c.failbit = true
c.reporter.Errorf(message, args...) c.reporter.Errorf(message, args...)
} }