Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-7254

policies field for configuring Fine Grained Retention policy in Tekton Results expects a string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • Pipelines 1.21
    • OpenShift Pipelines
    • None
    • Hide

      Without the (|) symbol, below error is observed when saving the configuration in TektonConfig:

      admission webhook "webhook.operator.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: cannot unmarshal array into Go struct field ConfigMap.spec.result.options.configMaps.data of type string 
      Show
      Without the (|) symbol, below error is observed when saving the configuration in TektonConfig: admission webhook "webhook. operator .tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: cannot unmarshal array into Go struct field ConfigMap.spec.result.options.configMaps.data of type string
    • ---
    • ---

      The `policies` field expects a string hence the documentation [1], needs to be corrected to add (|) symbol as below:

      policies: |
        - name: "retain-critical-failures-long-term"
       

      [1] https://docs.redhat.com/en/documentation/red_hat_openshift_pipelines/1.21/html/release_notes/op-release-notes-1-21#new-features-1-21-0_op-release-notes-1-21:~:text=Tekton%20Results-,Fine%2Dgrained%20retention%20policies,-With%20this%20update

              Unassigned Unassigned
              rhn-support-jyarora Jyotsana Arora
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: