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

EUG - Broken formatting of sample devfiles

XMLWordPrintable

      End User guide provides examples of devfiles which have wrong formatting:

      Example of a minimal dockerimage component:

      apiVersion: 1.0.0
      metadata:
          name: MyDevfile
      components:
      type: dockerimage
      image: golang
      memoryLimit: 512Mi
      command: ['sleep', 'infinity']
      

      should be:

      apiVersion: 1.0.0
      metadata:
          name: MyDevfile
      components:
          - type: dockerimage
            image: golang
            memoryLimit: 512Mi
            command: ['sleep', 'infinity']
      

       

      The same for below devfile:

      apiVersion: 1.0.0
      metadata:
          name: MyDevfile
      components:
      type: dockerimage
      image: golang
      memoryLimit: 512Mi
      mountSources: true
      command: ['sleep', 'infinity']
      

      should be:

      apiVersion: 1.0.0
      metadata:
          name: MyDevfile
      components:
          - type: dockerimage
            image: golang
            memoryLimit: 512Mi
            mountSources: true
            command: ['sleep', 'infinity']
      

              mmaler@redhat.com Michal Maléř
              vzhukovs-1 Vladyslav Zhukovskyi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: