Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17652

Additional labels fail with CK3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • camel-k-1.6-GA
    • camel-k-1.6-GA
    • Camel-K
    • None
    • False
    • False
    • % %
    • Todo

      Just tested in CK3:

      $ ./kamel version
      panic: Error parsing AdditionalLabels com.company=Red_Hat,rht.prod_name=Red_Hat_Integration,rht.prod_ver=,rht.comp=Camel-K,rht.comp_ver=\1.6.0,rht.subcomp=token_integration_name,rht.subcomp_t=application, Error: invalid label value: "\\1.6.0": at key: "rht.comp_ver": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')
      
      
      goroutine 1 [running]:
      github.com/apache/camel-k/pkg/util/label.checkAdditionalLabels()
      	github.com/apache/camel-k/pkg/util/label/label.go:50 +0x14f
      github.com/apache/camel-k/pkg/util/label.init.0()
      	github.com/apache/camel-k/pkg/util/label/label.go:41 +0x25
      

      It could be caused by some char replacement during productization steps.

            pcongius Pasquale Congiusti
            pcongius Pasquale Congiusti
            Andrej Smigala Andrej Smigala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: