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(),