Skip to content

Commit 6aafb06

Browse files
authored
Merge pull request #96400 from deerskindoll/remove-admonition
BUILD-1529: Remove admonition and callout formatting
2 parents 4e9a715 + a03e254 commit 6aafb06

File tree

1 file changed

+50
-52
lines changed

1 file changed

+50
-52
lines changed

modules/builds-using-build-volumes.adoc

Lines changed: 50 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -37,45 +37,48 @@ ifdef::dockerstrategy[]
3737
spec:
3838
dockerStrategy:
3939
volumes:
40-
- name: secret-mvn # <1>
40+
- name: secret-mvn
4141
mounts:
42-
- destinationPath: /opt/app-root/src/.ssh # <2>
42+
- destinationPath: /opt/app-root/src/.ssh
4343
source:
44-
type: Secret # <3>
44+
type: Secret
4545
secret:
46-
secretName: my-secret # <4>
47-
- name: settings-mvn # <1>
46+
secretName: my-secret
47+
- name: settings-mvn
4848
mounts:
49-
- destinationPath: /opt/app-root/src/.m2 # <2>
49+
- destinationPath: /opt/app-root/src/.m2
5050
source:
51-
type: ConfigMap # <3>
51+
type: ConfigMap
5252
configMap:
53-
name: my-config # <4>
53+
name: my-config
5454
ifndef::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
55-
- name: my-csi-volume # <1>
55+
- name: my-csi-volume
5656
mounts:
57-
- destinationPath: /opt/app-root/src/some_path # <2>
57+
- destinationPath: /opt/app-root/src/some_path
5858
source:
59-
type: CSI # <3>
59+
type: CSI
6060
csi:
61-
driver: csi.sharedresource.openshift.io # <5>
62-
readOnly: true # <6>
63-
volumeAttributes: # <7>
61+
driver: csi.sharedresource.openshift.io
62+
readOnly: true
63+
volumeAttributes:
6464
attribute: value
6565
endif::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
6666
----
67-
<1> Required. A unique name.
68-
<2> Required. The absolute path of the mount point. It must not contain `..` or `:` and does not 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.
69-
<3> Required. The type of source, `ConfigMap`, `Secret`, or `CSI`.
70-
<4> Required. The name of the source.
67+
68+
where:
69+
70+
`name`:: Specifies a unique name.
71+
`destinationPath`:: Specifies the absolute path of the mount point. It must not contain `..` or `:` and does not 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.
72+
`type`:: Specifies the type of source, `ConfigMap`, `Secret`, or `CSI`.
73+
`secretName`:: Specifies the name of the source.
7174
ifndef::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
72-
<5> Required. The driver that provides the ephemeral CSI volume.
73-
<6> Required. This value must be set to `true`. Provides a read-only volume.
74-
<7> Optional. The volume attributes of the ephemeral CSI volume. Consult the CSI driver's documentation for supported attribute keys and values.
75+
`driver`:: Specifies the driver that provides the ephemeral CSI volume.
76+
`readOnly`:: Specifies that a read-only volume is provided. This value must be set to `true`.
77+
`volumeAttributes`:: (Optional) Specifies the volume attributes of the ephemeral CSI volume.
78+
Consult the CSI driver's documentation for supported attribute keys and values.
7579

76-
:FeatureName: Shared Resource CSI Driver
77-
include::snippets/technology-preview.adoc[]
7880
endif::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
81+
7982
--
8083

8184
endif::dockerstrategy[]
@@ -84,61 +87,56 @@ ifdef::sourcestrategy[]
8487

8588
* In the `sourceStrategy` definition of the `BuildConfig` object, add any build volumes to the `volumes` array. For example:
8689
+
87-
--
8890
// The CSI Shared Resource driver is Tech Preview, so it is not applicable
8991
// to OSD and ROSA. When it is fully GA, it can be included in the example below.
90-
92+
+
9193
[source,yaml]
9294
----
9395
spec:
9496
sourceStrategy:
9597
volumes:
96-
- name: secret-mvn # <1>
98+
- name: secret-mvn
9799
mounts:
98-
- destinationPath: /opt/app-root/src/.ssh # <2>
100+
- destinationPath: /opt/app-root/src/.ssh
99101
source:
100-
type: Secret # <3>
102+
type: Secret
101103
secret:
102-
secretName: my-secret # <4>
103-
- name: settings-mvn # <1>
104+
secretName: my-secret
105+
- name: settings-mvn
104106
mounts:
105-
- destinationPath: /opt/app-root/src/.m2 # <2>
107+
- destinationPath: /opt/app-root/src/.m2
106108
source:
107-
type: ConfigMap # <3>
109+
type: ConfigMap
108110
configMap:
109-
name: my-config # <4>
111+
name: my-config
110112
ifndef::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
111-
- name: my-csi-volume # <1>
113+
- name: my-csi-volume
112114
mounts:
113-
- destinationPath: /opt/app-root/src/some_path # <2>
115+
- destinationPath: /opt/app-root/src/some_path
114116
source:
115-
type: CSI # <3>
117+
type: CSI
116118
csi:
117-
driver: csi.sharedresource.openshift.io # <5>
118-
readOnly: true # <6>
119-
volumeAttributes: # <7>
119+
driver: csi.sharedresource.openshift.io
120+
readOnly: true
121+
volumeAttributes:
120122
attribute: value
121123
endif::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
122124
----
125+
where:
123126
124-
<1> Required. A unique name.
125-
<2> Required. The absolute path of the mount point. It must not contain `..` or `:` and does not 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.
126-
<3> Required. The type of source, `ConfigMap`, `Secret`, or `CSI`.
127-
<4> Required. The name of the source.
127+
`name`:: Specifies a unique name.
128+
`destinationPath`:: Specifies the absolute path of the mount point. It must not contain `..` or `:` and does not 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.
129+
`type`:: Specifies the type of source: `ConfigMap`, `Secret`, or `CSI`.
130+
`secretName`:: Specifies the name of the source.
128131
ifndef::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
129-
<5> Required. The driver that provides the ephemeral CSI volume.
130-
<6> Required. This value must be set to `true`. Provides a read-only volume.
131-
<7> Optional. The volume attributes of the ephemeral CSI volume. Consult the CSI driver's documentation for supported attribute keys and values.
132+
`driver`:: Specifies the driver that provides the ephemeral CSI volume.
133+
`readOnly`:: Specifies that a read-only volume is provided. This value must be set to `true`.
134+
`volumeAttributes`:: (Optional) Specifies the volume attributes of the ephemeral CSI volume.
135+
Consult the CSI driver's documentation for supported attribute keys and values.
132136
endif::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
133-
--
134137

135138
endif::sourcestrategy[]
136139

137-
ifndef::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
138-
:FeatureName: Shared Resource CSI Driver
139-
include::snippets/technology-preview.adoc[]
140-
endif::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
141-
142140
ifeval::["{context}" == "build-strategies-docker"]
143141
:!dockerstrategy:
144142
endif::[]

0 commit comments

Comments
 (0)