forked from tinkerbell/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update stack helm chart after review on PR tinkerbell#72
Signed-off-by: Pascal Morillon <[email protected]>
- Loading branch information
1 parent
48ecf13
commit 316b3ea
Showing
6 changed files
with
47 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +0,0 @@ | ||
{{- if eq (include "stack.hookDownloadJobEnabled" .) "false" }} | ||
Warning: | ||
|
||
You are using no persistence or ReadWriteOnce access modes on PersistentVolumeClaim, Job `download-hook` is disabled. | ||
You will need to manage hooks artifacts manually. | ||
Also stack Deployment is not scalable. | ||
{{- end }} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
{{- define "stack.hookDownloadJobEnabled" -}} | ||
{{- $result := .Values.stack.persistence.enabled }} | ||
{{- if and .Values.stack.persistence.enabled (eq .Values.stack.persistence.type "pvc") }} | ||
{{- range .Values.stack.persistence.accessModes }} | ||
{{- if eq . "ReadWriteOnce" }} | ||
{{- $result = false}} | ||
{{- $result := false }} | ||
{{- if and .Values.stack.hook.enabled .Values.stack.hook.persistence.enabled -}} | ||
{{- $result = true -}} | ||
{{- if and .Values.stack.hook.persistence.enabled (eq .Values.stack.hook.persistence.type "pvc") }} | ||
{{- range .Values.stack.hook.persistence.accessModes }} | ||
{{- if eq . "ReadWriteOnce" }} | ||
{{- $result = false}} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- $result }} | ||
{{- end -}} | ||
{{- $result }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
tinkerbell/stack/templates/nginx_persistentvolumeclaim.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters