Skip to content

Commit

Permalink
clarify the import is required (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanposhiho authored Mar 31, 2024
1 parent 56cb882 commit 8654965
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions simulator/docs/custom-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ And we can configure it via `NodeNumberArgs`.
First, you need to add registry for the nodenumber plugin to `outOfTreeRegistries`.

```go
import (
...
"sigs.k8s.io/kube-scheduler-simulator/simulator/docs/sample/nodenumber"
)

outOfTreeRegistries = runtime.Registry{
// TODO(user): add your plugins registries here.
nodenumber.Name: nodenumber.New,
Expand Down

0 comments on commit 8654965

Please sign in to comment.