Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-2424

CRD not allowing collections with name length > than 30 characters to be created

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0-beta
    • 2.3.0, 2.3.0-beta
    • operator
    • None
    • 1

    Description

      2.3.0-151

      Tried to create a collection with name length > 30 characters:

      ---
      apiVersion: couchbase.com/v2
      kind: CouchbaseCollection
      metadata:
        name: collection2
        labels:
          collections: antique
      spec:
        name: fweuifweiufg3eiufbweiufbwergreg
      

      DAC throws error:
      arunkumarsenthilnathan@Arunkumars-MacBook-Pro couchbase-autonomous-operator-kubernetes_2.3.0-beta1-macos-x86_64 % kubectl create -f collection.yml
      The CouchbaseCollection "collection2" is invalid: spec.name: Invalid value: "fweuifweiufg3eiufbweiufbwergreg": spec.name in body should be at most 30 chars long

      As per MB-41836, we should collection name length to be 251 bytes long

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          simon.murray Simon Murray added a comment -

          I would suggest you inform the docs team their site is totally wrong then https://docs.couchbase.com/server/current/learn/data/scopes-and-collections.html#naming-for-scopes-and-collections

          We always use the docs, never go searching for MBs, so if things look totally wrong that's your first port of call.

          simon.murray Simon Murray added a comment - I would suggest you inform the docs team their site is totally wrong then https://docs.couchbase.com/server/current/learn/data/scopes-and-collections.html#naming-for-scopes-and-collections We always use the docs, never go searching for MBs, so if things look totally wrong that's your first port of call.
          simon.murray Simon Murray added a comment -

          Note: as per DNS "A label may contain zero to 63 characters"

          So anything over 63 in the length needs to go in the explicit field (docs task)

          simon.murray Simon Murray added a comment - Note: as per DNS "A label may contain zero to 63 characters" So anything over 63 in the length needs to go in the explicit field (docs task)

          Filed DOC-9190 for server docs

          arunkumar Arunkumar Senthilnathan added a comment - Filed DOC-9190 for server docs
          simon.murray Simon Murray added a comment -

          Beautiful!

          simon.murray Simon Murray added a comment - Beautiful!
          lynn.straus Lynn Straus added a comment -

          Adding 2.3.0 fixversion to all 2.3.0-beta tickets as those fixes will be in the GA release (as well as beta)

          lynn.straus Lynn Straus added a comment - Adding 2.3.0 fixversion to all 2.3.0-beta tickets as those fixes will be in the GA release (as well as beta)

          People

            simon.murray Simon Murray
            arunkumar Arunkumar Senthilnathan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty