Skip to content

Commit

Permalink
adding status badges along with some code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robscott committed Sep 3, 2018
1 parent b6e27d7 commit 38dfec4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# rbac-lookup

[![Go Report Card](https://goreportcard.com/badge/github.com/reactivops/rbac-lookup)](https://goreportcard.com/report/github.com/reactivops/rbac-lookup) [![CircleCI](https://circleci.com/gh/reactiveops/rbac-lookup.svg?style=svg)](https://circleci.com/gh/reactiveops/rbac-lookup)

This is a simple project that allows you to easily find Kubernetes roles and cluster roles bound to any user, service account, or group name. Binaries are generated with goreleaser for each release for simple installation.

## Usage
Expand Down
2 changes: 2 additions & 0 deletions lookup/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd"

// Required for GKE Auth
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
)

// List outputs rbac bindings where subject names match given string
func List(args []string, outputFormat string) {
clientset, err := getClientSet()
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions lookup/lister.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"k8s.io/client-go/kubernetes"

// Required for GKE Auth
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
)

Expand Down
14 changes: 14 additions & 0 deletions lookup/lister_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2018 ReactiveOps
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package lookup

import (
Expand Down

0 comments on commit 38dfec4

Please sign in to comment.