From 8f31f2f5b0c4655014aa57b0f53cba09eca5e5f9 Mon Sep 17 00:00:00 2001 From: naemono Date: Tue, 31 Dec 2019 13:15:44 -0600 Subject: [PATCH] Adding oidc (dex style) authentication to fleet Signed-off-by: naemono --- cmd/fleet/main.go | 3 ++- pkg/fleet/overview.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/fleet/main.go b/cmd/fleet/main.go index ac18d86..56f38e7 100644 --- a/cmd/fleet/main.go +++ b/cmd/fleet/main.go @@ -2,7 +2,8 @@ package main import ( "github.com/mhausenblas/kcf/cmd/fleet/cli" - _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // required for GKE + _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // required for GKE + _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" // required for oidc authentication ) func main() { diff --git a/pkg/fleet/overview.go b/pkg/fleet/overview.go index 5370ad4..a97108e 100644 --- a/pkg/fleet/overview.go +++ b/pkg/fleet/overview.go @@ -72,9 +72,9 @@ func nodesOverview(cfg api.Config, context string) (string, error) { for _, nodeCondition := range node.Status.Conditions { if nodeCondition.Type == "Ready" { if nodeCondition.Status == "True" { - readyCount++ + readyCount++ } - break + break } } }