From 97b7f2b05562ad0db8fb162b1c2f8fed7e2bed54 Mon Sep 17 00:00:00 2001 From: Travis Raines <571832+rainest@users.noreply.github.com> Date: Tue, 14 Jun 2022 16:08:27 -0700 Subject: [PATCH] chore(*) silence unwanted lints --- internal/controllers/gateway/gateway_utils.go | 3 ++- internal/controllers/gateway/utils.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/controllers/gateway/gateway_utils.go b/internal/controllers/gateway/gateway_utils.go index bedb2bb309..079b647902 100644 --- a/internal/controllers/gateway/gateway_utils.go +++ b/internal/controllers/gateway/gateway_utils.go @@ -351,7 +351,8 @@ func getListenerStatus( if len(reason) > 0 { newConditions := []metav1.Condition{} for _, cond := range statuses[listener.Name].Conditions { - switch gatewayv1alpha2.ListenerConditionType(cond.Type) { + // shut up linter, there's a default + switch gatewayv1alpha2.ListenerConditionType(cond.Type) { //nolint:exhaustive case gatewayv1alpha2.ListenerConditionReady, gatewayv1alpha2.ListenerConditionConflicted: continue default: diff --git a/internal/controllers/gateway/utils.go b/internal/controllers/gateway/utils.go index 5b9938deae..cb420ab918 100644 --- a/internal/controllers/gateway/utils.go +++ b/internal/controllers/gateway/utils.go @@ -21,7 +21,7 @@ func debug(log logr.Logger, obj client.Object, msg string, keysAndValues ...inte } // info is an alias for the longer log.V(util.InfoLevel).Info for convenience -func info(log logr.Logger, obj client.Object, msg string, keysAndValues ...interface{}) { +func info(log logr.Logger, obj client.Object, msg string, keysAndValues ...interface{}) { //nolint:unparam keysAndValues = append([]interface{}{ "namespace", obj.GetNamespace(), "name", obj.GetName(),