Skip to content

Commit

Permalink
[docs] fix create gameserver args (#2254)
Browse files Browse the repository at this point in the history
  • Loading branch information
karamaru-alpha committed Sep 7, 2021
1 parent 57005f7 commit c867c33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/content/en/docs/Guides/access-api.md
Expand Up @@ -57,6 +57,7 @@ package main

import (
"fmt"
"context"

agonesv1 "agones.dev/agones/pkg/apis/agones/v1"
"agones.dev/agones/pkg/client/clientset/versioned"
Expand Down Expand Up @@ -107,7 +108,7 @@ func main() {
},
},
}
newGS, err := agonesClient.AgonesV1().GameServers("default").Create(gs)
newGS, err := agonesClient.AgonesV1().GameServers("default").Create(context.TODO(), gs, metav1.CreateOptions{})
if err != nil {
panic(err)
}
Expand Down

0 comments on commit c867c33

Please sign in to comment.