Skip to content

Commit

Permalink
Update stack helm chart after review on PR #72
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Morillon <[email protected]>
  • Loading branch information
pmorillon committed Oct 27, 2023
1 parent 4b88eaf commit 90c539d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions tinkerbell/stack/templates/hook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ spec:
volumes:
- name: hook-artifacts
{{- if .Values.stack.hook.persistence.enabled }}
{{- if eq .Values.stack.hook.persistence.type "hostpath" }}
{{- if eq .Values.stack.hook.persistence.type "hostpath" }}
hostPath:
path: {{ .Values.stack.hook.downloadsDest }}
type: DirectoryOrCreate
{{- else if eq .Values.stack.hook.persistence.type "pvc" }}
{{- else if eq .Values.stack.hook.persistence.type "pvc" }}
persistentVolumeClaim:
claimName: {{ .Values.stack.hook.persistence.existingClaim | default "hook-artifacts" }}
{{- else }}
{{- fail "value for .Values.stack.hook.persistence.type is not as expected" }}
{{- end }}
{{- else }}
{{- fail "value for .Values.stack.hook.persistence.type is not as expected" }}
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
Expand Down
10 changes: 5 additions & 5 deletions tinkerbell/stack/templates/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ spec:
{{- if .Values.stack.hook.enabled }}
- name: hook-artifacts
{{- if .Values.stack.hook.persistence.enabled }}
{{- if eq .Values.stack.hook.persistence.type "hostpath" }}
{{- if eq .Values.stack.hook.persistence.type "hostpath" }}
hostPath:
path: {{ .Values.stack.hook.downloadsDest }}
type: DirectoryOrCreate
{{- else if eq .Values.stack.hook.persistence.type "pvc" }}
{{- else if eq .Values.stack.hook.persistence.type "pvc" }}
persistentVolumeClaim:
claimName: {{ .Values.stack.hook.persistence.existingClaim | default "hook-artifacts" }}
{{- else }}
{{- fail "value for .Values.stack.hook.persistence.type is not as expected" }}
{{- end }}
{{- else }}
{{- fail "value for .Values.stack.hook.persistence.type is not as expected" }}
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
Expand Down

0 comments on commit 90c539d

Please sign in to comment.