Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto committed Oct 4, 2024
1 parent cb2f259 commit 0710696
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/reconciler/autoscaling/kpa/scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ package kpa
import (
"context"
"fmt"
v1 "knative.dev/serving/pkg/apis/serving/v1"
revresurces "knative.dev/serving/pkg/reconciler/revision/resources"
"net/http"
"time"

"knative.dev/pkg/apis/duck"
"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"
Expand Down Expand Up @@ -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 == "" {
Expand Down

0 comments on commit 0710696

Please sign in to comment.