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

Generate schema for CRD v1 #348

Merged
merged 3 commits into from
Dec 22, 2020
Merged

Generate schema for CRD v1 #348

merged 3 commits into from
Dec 22, 2020

Commits on Dec 21, 2020

  1. Generate schema for CRD v1

    Schema is generated with `schemars`.
    
    `inline_subschemas` option is used to avoid definitions in schema.
    `meta_schema` is set to `None` to prevent including `$schema` which is
    not allowed by Kubernetes.
    
    This support nested structs and enums, but does not support structural
    schemas for some of the more complex spec types.
    The schema of the status subresource is included if present.
    
    Also fixed the location of `subresources` and `additionalPrinterColumns`.
    
    Closes kube-rs#264
    kazk committed Dec 21, 2020
    Configuration menu
    Copy the full SHA
    aefb05b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8b69d8a View commit details
    Browse the repository at this point in the history
  3. Add timestamp field to schema integration test

    Testing `chrono` feature.
    kazk committed Dec 21, 2020
    Configuration menu
    Copy the full SHA
    69f8ff5 View commit details
    Browse the repository at this point in the history