Skip to content

Commit

Permalink
chore: use named constants
Browse files Browse the repository at this point in the history
Just for consistency.

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@talos-systems.com>
  • Loading branch information
AlekSi committed Sep 7, 2021
1 parent 2dfe7f1 commit d53e9e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cluster/kubernetes/talos_managed.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,11 @@ func checkPodStatus(ctx context.Context, cluster UpgradeProvider, service, node,
ready := false

for _, condition := range pod.Status.Conditions {
if condition.Type != "Ready" {
if condition.Type != v1.PodReady {
continue
}

if condition.Status == "True" {
if condition.Status == v1.ConditionTrue {
ready = true

break
Expand Down

0 comments on commit d53e9e8

Please sign in to comment.