From 0710696c783e2d65c3043789d13fbed0c3f209b9 Mon Sep 17 00:00:00 2001 From: Stavros Kontopoulos Date: Fri, 4 Oct 2024 17:36:51 +0300 Subject: [PATCH] lint --- pkg/reconciler/autoscaling/kpa/scaler.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/reconciler/autoscaling/kpa/scaler.go b/pkg/reconciler/autoscaling/kpa/scaler.go index cf4df3ce2d49..aa687cc56f3b 100644 --- a/pkg/reconciler/autoscaling/kpa/scaler.go +++ b/pkg/reconciler/autoscaling/kpa/scaler.go @@ -19,8 +19,6 @@ package kpa import ( "context" "fmt" - v1 "knative.dev/serving/pkg/apis/serving/v1" - revresurces "knative.dev/serving/pkg/reconciler/revision/resources" "net/http" "time" @@ -28,6 +26,9 @@ import ( "knative.dev/pkg/injection/clients/dynamicclient" "knative.dev/pkg/logging" + v1 "knative.dev/serving/pkg/apis/serving/v1" + revresources "knative.dev/serving/pkg/reconciler/revision/resources" + netapis "knative.dev/networking/pkg/apis/networking" netv1alpha1 "knative.dev/networking/pkg/apis/networking/v1alpha1" nethttp "knative.dev/networking/pkg/http" @@ -401,7 +402,7 @@ func (ks *scaler) scale(ctx context.Context, pa *autoscalingv1alpha1.PodAutoscal func checkForPodErrorsBeforeScalingDown(logger *zap.SugaredLogger, pod *corev1.Pod, pa *autoscalingv1alpha1.PodAutoscaler) { if pod != nil { for _, status := range pod.Status.ContainerStatuses { - if status.Name != revresurces.QueueContainerName { + if status.Name != revresources.QueueContainerName { if t := status.LastTerminationState.Terminated; t != nil { logger.Debugf("marking exiting with: %d/%s", t.ExitCode, t.Message) if t.ExitCode == 0 && t.Message == "" {