Skip to content

Commit

Permalink
bugfix/BUG-872590 wrap ephemeral-storage in null check (#786)
Browse files Browse the repository at this point in the history
* perform null check on dep.ingress properly on older Helm versions

* wrap ephemeral-storage in null checks

* fix requests/limits typo

---------

Co-authored-by: Evan1oconto <[email protected]>
  • Loading branch information
pega-vanhd1 and Evan1oconto authored Jul 17, 2024
1 parent 0e25285 commit 4c1c954
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,15 @@ spec:
requests:
cpu: "{{ .root.Values.resources.requests.cpu }}"
memory: "{{ .root.Values.resources.requests.memory }}"
ephemeral-storage: "{{ .root.Values.resources.requests.ephemeralStorage | default "0G" }}"
{{- if .root.Values.resources.requests.ephemeralStorage }}
ephemeral-storage: "{{ .root.Values.resources.requests.ephemeralStorage }}"
{{- end }}
limits:
cpu: "{{ .root.Values.resources.limits.cpu }}"
memory: "{{ .root.Values.resources.limits.memory }}"
ephemeral-storage: "{{ .root.Values.resources.limits.ephemeralStorage | default "0G" }}"
{{- if .root.Values.resources.limits.ephemeralStorage }}
ephemeral-storage: "{{ .root.Values.resources.limits.ephemeralStorage }}"
{{- end }}
volumeMounts:
{{- if .root.Values.installerMountVolumeClaimName }}
- name: {{ template "pegaInstallerMountVolume" }}
Expand Down

0 comments on commit 4c1c954

Please sign in to comment.