Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Resource example #1

Closed
wants to merge 9 commits into from
Closed

Custom Resource example #1

wants to merge 9 commits into from

Conversation

aylei
Copy link
Owner

@aylei aylei commented Oct 28, 2019

Example

  1. Write type definitions of v1alpha1/foo and v1beta1/foo: 9ca60b2
  2. Generate code: c9071e4
  3. (optional) Write custom Defaulting, Conversion, PrepareForCreate, Validate and Canonicalize: 284ce16
  4. (optional) Re-generate code

Reference

Write path:

{versioned} -> FooRest -> Defaulting -> Conversion -> {unversioned}
{unversioned} -> PrepareForCreate -> Validate -> Canonicalize -> storage

Read path:

storage -> {unversioned}
{unversioned} -> Conversion -> {versioned} -> FooRest -> client

Signed-off-by: Aylei <rayingecho@gmail.com>
@github-actions
Copy link

This pr is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant