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

Please validate syntax for annotation che.eclipse.org/automount-workspace-secret

    XMLWordPrintable

Details

    Description

      At least twice in our documentation [1][2] we recommend the user makes an annotation like this:

       

      //    The erroneous syntax we recommend

      annotations:
      che.eclipse.org/automount-workspace-secret: true

       

       

      //  The error that results

      Doing so will result in an error when the user tries to apply the change:

      error: unable to decode "secret.yaml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Annotations: ReadString: expects " or n, but found t, error found in #10 byte of ...|-secret":true

       

      The user reports this version works better:

      // The syntax that seems to work

      annotations:
      che.eclipse.org/automount-workspace-secret: "true"

       

       

      Please find out if this error is in the documentation, configuration of the annotation, etc. and make necessary corrections.  Thank you!

       

       

       

      [1] https://access.redhat.com/documentation/en-us/red_hat_codeready_workspaces/2.5/html/end-user_guide/using-artifact-repositories-in-a-restricted-environment_crw#proc_defining-maven-settings-xml-file-across-workspaces_crw

      [2] https://access.redhat.com/documentation/en-us/red_hat_codeready_workspaces/2.5/html/end-user_guide/developer-workspaces_crw#mounting-a-secret-as-a-file-into-a-workspace-container_crw

      Attachments

        Activity

          People

            mmaler@redhat.com Michal Maléř
            rhn-support-rick Rick Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: