Skip to content

Commit

Permalink
chore: update volumes doc (#1364)
Browse files Browse the repository at this point in the history
Signed-off-by: Keran Yang <[email protected]>
  • Loading branch information
KeranYang authored Nov 15, 2023
1 parent d39d749 commit a5c0805
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions docs/user-guide/reference/configuration/volumes.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Volumes

`Volumes` can be mounted to [`udf`](../../user-defined-functions/map/map.md) or [`udsink`](../../sinks/user-defined-sinks.md) containers.
`Volumes` can be mounted to [`udsource`](../../sources/user-defined-sources.md), [`udf`](../../user-defined-functions/map/map.md) or [`udsink`](../../sinks/user-defined-sinks.md) containers.

Following example shows how to mount a ConfigMap to an `udf` vertex and an `udsink` vertex.
Following example shows how to mount a ConfigMap to an `udsource` vertex, an `udf` vertex and an `udsink` vertex.

```yaml
apiVersion: numaflow.numaproj.io/v1alpha1
Expand All @@ -11,6 +11,18 @@ metadata:
name: my-pipeline
spec:
vertices:
- name: my-source
volumes:
- name: my-udsource-config
configMap:
name: udsource-config
source:
udsource:
container:
image: my-source:latest
volumeMounts:
- mountPath: /path/to/my-source-config
name: my-udsource-config
- name: my-udf
volumes:
- name: my-udf-config
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/numaflow/v1alpha1/jetstream_buffer_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package v1alpha1

import (
fmt "fmt"
"fmt"
"strconv"

appv1 "k8s.io/api/apps/v1"
Expand Down

0 comments on commit a5c0805

Please sign in to comment.