Uploaded image for project: 'OpenShift Builds'
  1. OpenShift Builds
  2. BUILD-1380

Use Server-Side Apply to Install CRDs

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • shipwright
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      When describing build schema the descriptions are all cut off:
      $ oc explain --api-version=shipwright.io/v1beta1 build.spec.source
      GROUP:      shipwright.io
      KIND:       Build
      VERSION:    v1beta1
      
      FIELD: source <Object>
      
      DESCRIPTION:
          Source refers to the location where the source cod
      
      FIELDS:
        contextDir    <string>
          ContextDir is a path to subfolder in the repo. Opt
      
        git   <Object>
          Git contains the details for the source of type Gi
      
        local <Object>
          Local contains the details for the source of type
      
        ociArtifact   <Object>
          OCIArtifact contains the details for the source of
      
        type  <string> -required-
          Type is the BuildSource qualifier, the type of the

      Additional info:

          

      Root Cause: Shipwright's CRDs are very large, and the operator uses "client-side apply" to install them. This adds a very large annotation to the CRD object, causing it to exceed size limits.

      Switching the CRD installation to use server-side apply solves this problem, and allows us to revert some of the logic in https://github.com/shipwright-io/operator/pull/204.

              rh-ee-sabiswas Sayan Biswas
              jkincl@redhat.com Jason Kincl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: