Skip to content

Commit

Permalink
fix: make partial backup restores work more consistently
Browse files Browse the repository at this point in the history
Signed-off-by: David Young <[email protected]>
  • Loading branch information
funkypenguin committed Jan 7, 2025
1 parent 33de184 commit 4bf2b01
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/myprecious/templates/deployment-nodefinder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Here, we check for pre-existing volumes, so that later on we can optionally mount them, forcing nodefinder onto the node which already has our volumes:
{{- $pvc_config := (lookup "v1" "PersistentVolumeClaim" .Release.Namespace "config" ) }}
{{- $pvc_symlinks := (lookup "v1" "PersistentVolumeClaim" .Release.Namespace "symlinks" ) }}

apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -77,9 +78,18 @@ spec:
- mountPath: /config
name: config
{{- end }}
{{- if $pvc_symlinks }}
- mountPath: /symlinks
name: symlinks
{{- end }}
volumes:
{{- if $pvc_config }}
- name: config
persistentVolumeClaim:
claimName: config
{{ end }}
{{- if $pvc_symlinks }}
- name: symlinks
persistentVolumeClaim:
claimName: symlinks
{{ end }}

0 comments on commit 4bf2b01

Please sign in to comment.