Skip to content

Commit

Permalink
Merge pull request #96 from ibazhitov/workaround-92
Browse files Browse the repository at this point in the history
docs: mention temporary workaround for #92
  • Loading branch information
Phillip Wittrock authored Jul 13, 2017
2 parents 4fbef6f + b50136f commit 137b984
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 137b984

Please sign in to comment.