Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-33574

should reduce error message details when edit route with spec.tls.externalCertificate

XMLWordPrintable

    • Low
    • No
    • 3
    • CFE Sprint 253
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress

      Description of problem:

          should reduce error message details for Not Found secret when edit/patch route with spec.tls.externalCertificate

      Version-Release number of selected component (if applicable):

          4.16.0-0.ci.test-2024-05-13-005506-ci-ln-05s0z32-latest

      How reproducible:

          100%

      Steps to Reproduce:

          1. enable TP feature "RouteExternalCertificate"
          2. create pod,svc and route
          3. oc -n hongli patch route myedge --type=merge --patch='{"spec":{"tls":{"externalCertificate":{"name": "newtls"}}}}'     

      Actual results:

      the error message:    
      The Route "myedge" is invalid: spec.tls.externalCertificate: Not found: errors.StatusError{ErrStatus:v1.Status{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ListMeta:v1.ListMeta{SelfLink:"", ResourceVersion:"", Continue:"", RemainingItemCount:(*int64)(nil)}, Status:"Failure", Message:"secrets \"newtls\" not found", Reason:"NotFound", Details:(*v1.StatusDetails)(0xc0077e25a0), Code:404}}

      Expected results:

          something like: `spec.tls.externalCertificate: Not found: "secrets \"newtls\" not found"`

      Additional info:

          discuss in thread of https://redhat-internal.slack.com/archives/C06EK9ZH3Q8/p1715243443244879

       

            rh-ee-ckyal Chirag Kyal
            rhn-support-hongli Hongan Li
            Hongan Li Hongan Li
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: