Skip to content

Commit

Permalink
Fix Access Api Example (#1068)
Browse files Browse the repository at this point in the history
* add missing logger definition

* fix tabs

* fix tabs
  • Loading branch information
ramonberrutti authored and markmandel committed Sep 25, 2019
1 parent 188bd12 commit 2cad593
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions site/content/en/docs/Guides/access-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,18 @@ import (
"fmt"

agonesv1 "agones.dev/agones/pkg/apis/agones/v1"
"agones.dev/agones/pkg/util/runtime" // for the logger
"agones.dev/agones/pkg/client/clientset/versioned"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/rest"
"k8s.io/client-go/kubernetes"
)

var (
logger = runtime.NewLoggerWithSource("main")
)

func main() {
config, err := rest.InClusterConfig()
if err != nil {
Expand Down

0 comments on commit 2cad593

Please sign in to comment.