XMLWordPrintable

    • False
    • None
    • False
    • Release Notes
    • Hide
      = Ignored volumes size in devfiles

      Before this update, there was an issue with volume sizes in devfiles being ignored. With this update, if at least one volume in a DevWorkspace specifies its size, and the computed PVC size is greater than the default per-workspace PVC size, the computed PVC size will be used.
      Show
      = Ignored volumes size in devfiles Before this update, there was an issue with volume sizes in devfiles being ignored. With this update, if at least one volume in a DevWorkspace specifies its size, and the computed PVC size is greater than the default per-workspace PVC size, the computed PVC size will be used.
    • Bug Fix
    • Done

      Devfile schema allows to specify volume size
      https://devfile.io/docs/2.2.0/adding-a-volume-component

      When we create workspace with similar devfile, the volume size is always ignored and the custom size attribute is ignored.

      To reproduce the issue:

      schemaVersion: 2.1.0
      metadata: 
        name: sample-java-devfile
      components: 
        - name: tools
          container: 
            image: registry.redhat.io/devspaces/udi-rhel8:3.7
            memoryLimit: 3Gi
            env: 
              - name: USE_JAVA17
                value: "true"
            endpoints: 
              - exposure: public
                name: http-booster
                protocol: http
                targetPort: 8080
                attributes: 
                  discoverable: true
                  urlRewriteSupported: true
              - exposure: internal
                name: debug
                protocol: http
                targetPort: 5005
            volumeMounts: 
              - name: m2
                path: /home/user/.m2
        - name: m2
          volume: 
            size: 10G
      
      • Confirm the PV/PVC size in the cluster - it should match in size, but it does not right now.

      ACTUAL BEHAVIOUR:
      volume size as defined in the devfile is ignored

      EXPECTED BEHAVIOUR:
      Volume size as defined in the devfile is respected by the dev spaces

              jvrbkova@redhat.com Jana Vrbkova
              rhn-support-agiertli Anton Giertli
              Maksym Musienko Maksym Musienko
              Jana Vrbkova Jana Vrbkova
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: