Skip to content

Commit

Permalink
doc: add context.Context to examples (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonifaido committed Jan 15, 2021
1 parent 4eb508c commit 38d292e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/authn/k8schain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ A `k8schain` keychain can be built via one of:

```go
// client is a kubernetes.Interface
kc, err := k8schain.New(client, k8schain.Options{})
kc, err := k8schain.New(ctx, client, k8schain.Options{})
...

// This method is suitable for use by controllers or other in-cluster processes.
kc, err := k8schain.NewInCluster(k8schain.Options{})
kc, err := k8schain.NewInCluster(ctx, k8schain.Options{})
...
```

Expand Down

0 comments on commit 38d292e

Please sign in to comment.