Skip to content

Commit

Permalink
docs: mention temporary workaround for #92
Browse files Browse the repository at this point in the history
TODO: revert this commit when #92 is fixed.
  • Loading branch information
ibazhitov committed Jul 13, 2017
1 parent 4fbef6f commit b50136f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/adding_custom_rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@ type Foo struct {
// Your resource definition here
}

// Custom REST storage
// Initialize custom REST storage
func NewFooREST() rest.Storage {
// Your rest.Storage implementation here
// Initialize fields of custom REST implementation
}
```

// Your rest.Storage implementation below
// ...
```

**Warning:** NewFooREST() should not contain any non-trivial logic, besides
simply initializing the fields of the struct, that represents the custom REST.
See [this issue](https://github.com/kubernetes-incubator/apiserver-builder/issues/92) for details.

0 comments on commit b50136f

Please sign in to comment.