Skip to content

Commit

Permalink
Adding oidc (dex style) authentication to fleet
Browse files Browse the repository at this point in the history
Signed-off-by: naemono <mmontg1@gmail.com>
  • Loading branch information
naemono committed Dec 31, 2019
1 parent 80afa1b commit 8f31f2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/fleet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/fleet/overview.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit 8f31f2f

Please sign in to comment.