Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-5956

Allow pod-overrides for volumes and container-overrides for volumeMounts in Devfiles

XMLWordPrintable

    • False
    • None
    • True
    • Release Notes
    • Hide
      = Allow pod-overrides for volumes and container-overrides for volumeMounts in Devfiles

      With this release, you can use pod and container overrides for volumes and volumeMounts in the Devfile definition.

      For example, you can add a CSI volume with the link:https://docs.openshift.com/container-platform/4.14/storage/container_storage_interface/ephemeral-storage-shared-resource-csi-driver-operator.html[SharedSecret] to a pod or container in the Container Development Environment (CDE):

      [source, code]
      ----
      schemaVersion: 2.2.2
      attributes:
        controller.devfile.io/storage-type: per-workspace
      metadata:
        name: pod-overrides-example
        attributes:
          pod-overrides:
            spec:
              volumes:
                - csi:
                    driver: csi.sharedresource.openshift.io
                    readOnly: true
                    volumeAttributes:
                      sharedSecret: my-share
                  name: my-csi-volume
      components:
      - name: workspace
        attributes:
          container-overrides:
            volumeMounts:
              - mountPath: /etc/my-csi-volume
                 name: my-csi-volume
                 readOnly: true
        container:
          ...
      ----
      Show
      = Allow pod-overrides for volumes and container-overrides for volumeMounts in Devfiles With this release, you can use pod and container overrides for volumes and volumeMounts in the Devfile definition. For example, you can add a CSI volume with the link: https://docs.openshift.com/container-platform/4.14/storage/container_storage_interface/ephemeral-storage-shared-resource-csi-driver-operator.html [SharedSecret] to a pod or container in the Container Development Environment (CDE): [source, code] ---- schemaVersion: 2.2.2 attributes:   controller.devfile.io/storage-type: per-workspace metadata:   name: pod-overrides-example   attributes:     pod-overrides:       spec:         volumes:           - csi:               driver: csi.sharedresource.openshift.io               readOnly: true               volumeAttributes:                 sharedSecret: my-share             name: my-csi-volume components: - name: workspace   attributes:     container-overrides:       volumeMounts:         - mountPath: /etc/my-csi-volume            name: my-csi-volume            readOnly: true   container:     ... ----
    • Enhancement
    • Done

            jvrbkova@redhat.com Jana Vrbkova
            jvrbkova@redhat.com Jana Vrbkova
            Andrew Obuchowicz Andrew Obuchowicz
            Jana Vrbkova Jana Vrbkova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: