Merge pull request #48711 from p0lyn0mial/sample_apiserver_small_improvements
Automatic merge from submit-queue (batch tested with PRs 48997, 48595, 48898, 48711, 48972)
minor adjustments in the sample apiserver around resource creation.
**What this PR does / why we need it**: This PR improves `NewREST` method to support an error and nor-error path. The method is then wrapped in a convenient function which panics on error.
**Release note**:
```
NONE
```
Showing
Please
register
or
sign in
to comment