Uploaded image for project: 'Apache Submarine'
  1. Apache Submarine
  2. SUBMARINE-669

notebook name contain only lowercase alphanumeric characters or '-'

    XMLWordPrintableJSON

Details

    Description

      If we create a notebook instance with name "test.a", the notebook-controller will return below error message. 

      Reissued from statefulset/test.a: create Pod test.a-0 in StatefulSet test.a failed error: Pod "test.a-0" is invalid: [spec.containers[0].name: Invalid value: "test.a": a DNS-1123 label must consist of lower case alphanumeric characters or '', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9][a-z0-9])?'), spec.hostname: Invalid value: "test.a-0": a DNS-1123 label must consist of lower case alphanumeric characters or '', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9][a-z0-9])?')]

      Object names must follow the DNS label standard as defined in RFC 1123

      • contain at most 63 characters
      • contain only lowercase alphanumeric characters or '-'
      • start with an alphanumeric character
      • end with an alphanumeric character

      reference : K8s object names and IDs

      Attachments

        Issue Links

          Activity

            People

              charles0220 Charles Huang
              lowc1012 Ryan Lo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: