Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 38 additions & 2 deletions modules/builds-using-build-volumes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,29 @@ spec:
type: ConfigMap <3>
configMap:
name: my-config <4>
- name: my-csi-volume <1>
mounts:
- destinationPath: /opt/app-root/src/some_path <2>
source:
type: CSI <3>
csi:
driver: csi.sharedresource.openshift.io <5>
readOnly: true <6>
volumeAttributes: <7>
attribute: value
----
<1> Required. A unique name.
<2> Required. The absolute path of the mount point. It must not contain `..` or `:` and doesn't collide with the destination path generated by the builder. The `/opt/app-root/src` is the default home directory for many Red Hat S2I-enabled images.
<3> Required. The type of source, `ConfigMap` or `Secret`.
<3> Required. The type of source, `ConfigMap`, `Secret`, or `CSI`.
<4> Required. The name of the source.
<5> Required. The driver that provides the ephemeral CSI volume.
<6> Optional. If true, this instructs the driver to provide a read-only volume.
<7> Optional. The volume attributes of the ephemeral CSI volume. Consult the CSI driver's documentation for supported attribute keys and values.

[NOTE]
====
The shared resource CSI driver is supported as **Tech Preview** only.
====

endif::dockerstrategy[]

Expand All @@ -77,12 +95,30 @@ spec:
type: ConfigMap <3>
configMap:
name: my-config <4>
- name: my-csi-volume <1>
mounts:
- destinationPath: /opt/app-root/src/some_path <2>
source:
type: CSI <3>
csi:
driver: csi.sharedresource.openshift.io <5>
readOnly: true <6>
volumeAttributes: <7>
attribute: value
----

<1> Required. A unique name.
<2> Required. The absolute path of the mount point. It must not contain `..` or `:` and doesn't collide with the destination path generated by the builder. The `/opt/app-root/src` is the default home directory for many Red Hat S2I-enabled images.
<3> Required. The type of source, `ConfigMap` or `Secret`.
<3> Required. The type of source, `ConfigMap`, `Secret`, or `CSI`.
<4> Required. The name of the source.
<5> Required. The driver that provides the ephemeral CSI volume.
<6> Optional. If true, this instructs the driver to provide a read-only volume.
<7> Optional. The volume attributes of the ephemeral CSI volume. Consult the CSI driver's documentation for supported attribute keys and values.

[NOTE]
====
The shared resource CSI driver is supported as **Tech Preview** only.
====

endif::sourcestrategy[]

Expand Down