From a41e9e46d72788bceea8ba44e01d4062afec75fd Mon Sep 17 00:00:00 2001 From: Kate Osborn <50597707+kate-osborn@users.noreply.github.com> Date: Thu, 12 Oct 2023 15:45:58 -0600 Subject: [PATCH] Fix fieldalignment error (#1137) Problem: Lint failed with a fieldalignment error. Solution: Realign the struct to resolve the error. --- internal/mode/static/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/mode/static/handler.go b/internal/mode/static/handler.go index e99cf2ae15..71f24672b4 100644 --- a/internal/mode/static/handler.go +++ b/internal/mode/static/handler.go @@ -46,12 +46,12 @@ type eventHandlerConfig struct { eventRecorder record.EventRecorder // logLevelSetter is used to update the logging level. logLevelSetter ZapLogLevelSetter + // metricsCollector collects metrics for this controller. + metricsCollector handlerMetricsCollector // healthChecker sets the health of the Pod to Ready once we've written out our initial config healthChecker *healthChecker // controlConfigNSName is the NamespacedName of the NginxGateway config for this controller. controlConfigNSName types.NamespacedName - // metricsCollector collects metrics for this controller. - metricsCollector handlerMetricsCollector // version is the current version number of the nginx config. version int }