From 0c4d70fed95dfa505afcc6280622deb4414f03d3 Mon Sep 17 00:00:00 2001 From: jmorganca Date: Fri, 8 Oct 2021 09:55:44 -0400 Subject: [PATCH] fix current context indicator --- go.sum | 2 -- internal/cmd/list.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/go.sum b/go.sum index 04df179c9e..11d1c65f81 100644 --- a/go.sum +++ b/go.sum @@ -180,8 +180,6 @@ github.com/aws/aws-sdk-go v1.15.27/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZo github.com/aws/aws-sdk-go v1.20.6/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.37.0/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/aws/aws-sdk-go v1.40.34/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= -github.com/aws/aws-sdk-go v1.40.57 h1:nzisxNMmhGAxXGa6SuY07WsLFcyHLDuhTsD6UjYAFaw= -github.com/aws/aws-sdk-go v1.40.57/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= github.com/aws/aws-sdk-go v1.40.58 h1:SFa94nBsXyaS+cXluXlvqLwsQdeD7A/unJcWEld1xZ0= github.com/aws/aws-sdk-go v1.40.58/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= github.com/aws/aws-sdk-go-v2 v1.9.0 h1:+S+dSqQCN3MSU5vJRu1HqHrq00cJn6heIMU7X9hcsoo= diff --git a/internal/cmd/list.go b/internal/cmd/list.go index b4857512e5..0271209f93 100644 --- a/internal/cmd/list.go +++ b/internal/cmd/list.go @@ -70,7 +70,7 @@ func list() error { row.CertificateAuthorityData = []byte(kube.Ca) row.Type = "kubernetes" - if kubeConfig.CurrentContext == row.Name { + if kubeConfig.CurrentContext == fmt.Sprintf("infra:%s", row.Name) { row.CurrentlySelected = "*" } }