Skip to content

Incorporate schema into CRDs #912

Closed

Description

@mattmoor

K8s added the ability to specify schema to CRD definitions in 1.9. We should take advantage of that.

Activity

  1. added
    area/API
    area/build
    kind/cleanup
    kind/feature
    on May 18, 2018
  2. mattmoor commented on Jan 7, 2019

    @mattmoor
    ContributorAuthor
  3. jonjohnsonjr commented on Mar 26, 2019

    @jonjohnsonjr
    Contributor

    We might need kubernetes-sigs/kubebuilder#406 to be fixed before we can use the crd generate tool from kubebuilder.

  4. knative-housekeeping-robot commented on Dec 22, 2019

    @knative-housekeeping-robot

    Issues go stale after 90 days of inactivity.
    Mark the issue as fresh by adding the comment /remove-lifecycle stale.
    Stale issues rot after an additional 30 days of inactivity and eventually close.
    If this issue is safe to close now please do so by adding the comment /close.

    Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.

    /lifecycle stale

  5. added
    lifecycle/stale
    on Dec 22, 2019
  6. knative-housekeeping-robot commented on Jan 21, 2020

    @knative-housekeeping-robot

    Stale issues rot after 30 days of inactivity.
    Mark the issue as fresh by adding the comment /remove-lifecycle rotten.
    Rotten issues close after an additional 30 days of inactivity.
    If this issue is safe to close now please do so by adding the comment /close.

    Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.

    /lifecycle rotten

  7. 57 remaining items

  8. markusthoemmes commented on Apr 26, 2021

    @markusthoemmes
    Contributor

    Correction from the above: Switch 1 and 2 and do the networking change first to obsolete undoing stuff in vendor after generation.

  9. dprotaso commented on Apr 26, 2021

    @dprotaso
    Member

    The size limits were hit, because we served 3 versions of the APIs. The schema is copied across those versions. The current Service schema clocks in at 340K, which is not small but also not breaking anything yet.

    When does this break again? ie. if we add a v2 do we reach that limit?

  10. markusthoemmes commented on Apr 26, 2021

    @markusthoemmes
    Contributor

    Good question! Actually, since we're now able to filter the PodSpec down to only the things we support, the Service CRD clocks in at a mere 104K. Assuming a 1M size limit in K8s (which is what a quick search yielded) we should be quite a way away from hitting any YAML size limits here.

  11. added a commit that references this issue on Feb 24, 2025
  12. added a commit that references this issue on Feb 24, 2025
  13. added a commit that references this issue on Feb 25, 2025
  14. added a commit that references this issue on Mar 5, 2025
  15. added a commit that references this issue on Mar 6, 2025
  16. added a commit that references this issue on Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/APIgood first issuehelp wantedkind/cleanupkind/featuretriage/accepted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions