From 327589d78952b7b20ede6d5add04c01a5f787221 Mon Sep 17 00:00:00 2001 From: Vladislav Klimenko Date: Thu, 23 Jan 2025 12:27:08 +0300 Subject: [PATCH] dev: formatter --- pkg/controller/chi/worker.go | 2 +- pkg/model/k8s/pod.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/chi/worker.go b/pkg/controller/chi/worker.go index f71a86a43..1c5d876de 100644 --- a/pkg/controller/chi/worker.go +++ b/pkg/controller/chi/worker.go @@ -17,7 +17,6 @@ package chi import ( "context" "errors" - "github.com/altinity/clickhouse-operator/pkg/model/k8s" "time" core "k8s.io/api/core/v1" @@ -47,6 +46,7 @@ import ( commonCreator "github.com/altinity/clickhouse-operator/pkg/model/common/creator" commonMacro "github.com/altinity/clickhouse-operator/pkg/model/common/macro" commonNormalizer "github.com/altinity/clickhouse-operator/pkg/model/common/normalizer" + "github.com/altinity/clickhouse-operator/pkg/model/k8s" "github.com/altinity/clickhouse-operator/pkg/model/managers" "github.com/altinity/clickhouse-operator/pkg/util" "github.com/altinity/queue" diff --git a/pkg/model/k8s/pod.go b/pkg/model/k8s/pod.go index 07f54bb74..a88b796c6 100644 --- a/pkg/model/k8s/pod.go +++ b/pkg/model/k8s/pod.go @@ -48,7 +48,7 @@ func PodHasCrushedContainers(pod *core.Pod) bool { func PodHasNotReadyContainers(pod *core.Pod) bool { for _, containerStatus := range pod.Status.ContainerStatuses { - if !containerStatus.Ready { + if !containerStatus.Ready { // Not ready return true }