Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #109 from Shopify/fix_gofmt
Browse files Browse the repository at this point in the history
Fix spacing and typos
  • Loading branch information
genevieveluyt authored Sep 21, 2018
2 parents f2fc144 + 166b748 commit dd1e8b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
networking "k8s.io/api/networking/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/pkg/version"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // auth for GKE clusters
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // auth for GKE clusters
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc" // auth for OIDC
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type rootFlags struct {
dropCapConfig string
}

// RootCmd defines the shell command useage for kubeaudit.
// RootCmd defines the shell command usage for kubeaudit.
var RootCmd = &cobra.Command{
Use: "kubeaudit",
Short: "A Kubernetes security auditor",
Expand Down
6 changes: 3 additions & 3 deletions cmd/runAsNonRoot.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ func checkRunAsNonRoot(container Container, result *Result) {
func auditRunAsNonRoot(resource k8sRuntime.Object) (results []Result) {
for _, container := range getContainers(resource) {
result, err := newResultFromResource(resource)
if err != nil {
log.Error(err)
return
if err != nil {
log.Error(err)
return
}

checkRunAsNonRoot(container, result)
Expand Down
2 changes: 1 addition & 1 deletion cmd/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ func TestUnknownResource(t *testing.T) {

assert.Nil(err)
assert.Len(objects, 0)
}
}

0 comments on commit dd1e8b3

Please sign in to comment.