Skip to content

Commit

Permalink
Correctly perform semantic version comparision (8gears#54)
Browse files Browse the repository at this point in the history
Fixes: 8gears#53

Signed-off-by: Richard Kosegi <[email protected]>
  • Loading branch information
rkosegi committed Sep 20, 2023
1 parent 83a5333 commit 1fe2872
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/deployment.webhooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
{{- toYaml .Values.webhookResources | nindent 12 }}
volumeMounts:
- name: data
mountPath: {{ if semverCompare ">=1.0" .Values.image.tag | default .Chart.AppVersion }}/home/node/.n8n{{ else }}/root/.n8n{{ end }}
mountPath: {{ if semverCompare ">=1.0" (.Values.image.tag | default .Chart.AppVersion) }}/home/node/.n8n{{ else }}/root/.n8n{{ end }}
{{- if .Values.config }}
- name: config-volume
mountPath: /n8n-config
Expand Down
2 changes: 1 addition & 1 deletion templates/deployment.worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
{{- toYaml .Values.workerResources | nindent 12 }}
volumeMounts:
- name: data
mountPath: {{ if semverCompare ">=1.0" .Values.image.tag | default .Chart.AppVersion }}/home/node/.n8n{{ else }}/root/.n8n{{ end }}
mountPath: {{ if semverCompare ">=1.0" (.Values.image.tag | default .Chart.AppVersion) }}/home/node/.n8n{{ else }}/root/.n8n{{ end }}
{{- if .Values.config }}
- name: config-volume
mountPath: /n8n-config
Expand Down
2 changes: 1 addition & 1 deletion templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: data
mountPath: {{ if semverCompare ">=1.0" .Values.image.tag | default .Chart.AppVersion }}/home/node/.n8n{{ else }}/root/.n8n{{ end }}
mountPath: {{ if semverCompare ">=1.0" (.Values.image.tag | default .Chart.AppVersion) }}/home/node/.n8n{{ else }}/root/.n8n{{ end }}
{{- if .Values.config }}
- name: config-volume
mountPath: /n8n-config
Expand Down

0 comments on commit 1fe2872

Please sign in to comment.