Skip to content

Commit

Permalink
Merge branch 'main' into bidi-source
Browse files Browse the repository at this point in the history
  • Loading branch information
yhl25 authored Sep 18, 2024
2 parents d0e31fa + cbe9054 commit f4a7be3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions docs/user-guide/reference/configuration/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,28 @@ spec:
- mountPath: /path/to/my-sink-config
name: my-udsink-config
```
## PVC Example
Example to show how to attach a Persistent Volume Claim (PVC) to a container.
```yaml
apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
name: my-pipeline
spec:
vertices:
- name: my-source
volumes:
- name: mypd
persistentVolumeClaim:
claimName: myclaim
source:
udsource:
container:
image: my-source:latest
volumeMounts:
- mountPath: /path/to/my-source-config
name: mypd
```
4 changes: 2 additions & 2 deletions pkg/reconciler/pipeline/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ func buildVertices(pl *dfv1.Pipeline) map[string]dfv1.Vertex {
copyVertexTemplate(pl, vCopy)
copyVertexLimits(pl, vCopy)
replicas := int32(1)
// If the desired phase is pause or we are in the middle of pausing we should not start any vertex replicas
// If the desired phase is paused or we are in the middle of pausing we should not start any vertex replicas
if isLifecycleChange(pl) {
replicas = int32(0)
} else if v.IsReduceUDF() {
Expand Down Expand Up @@ -952,7 +952,7 @@ func (r *pipelineReconciler) checkChildrenResourceStatus(ctx context.Context, pi
defer func() {
for _, c := range pipeline.Status.Conditions {
if c.Status != metav1.ConditionTrue {
pipeline.Status.SetPhase(pipeline.Spec.Lifecycle.GetDesiredPhase(), "Degraded: "+c.Message)
pipeline.Status.Message = "Degraded: " + c.Message
return
}
}
Expand Down

0 comments on commit f4a7be3

Please sign in to comment.