Skip to content

Commit 130939a

Browse files
authored
feat: add resources to capsule-proxy-certgen helm job
Signed-off-by: Nikolai Emil Damm <[email protected]>
1 parent e132fb9 commit 130939a

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

charts/capsule-proxy/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ If you only need to make minor customizations, you can specify them on the comma
9595
| global.jobs.certs.nodeSelector | object | `{}` | Set the node selector |
9696
| global.jobs.certs.podSecurityContext | object | `{"seccompProfile":{"type":"RuntimeDefault"}}` | Security context for the job pods. |
9797
| global.jobs.certs.priorityClassName | string | `""` | Set a pod priorityClassName |
98+
| global.jobs.certs.resources | object | `{}` | Job resources |
9899
| global.jobs.certs.restartPolicy | string | `"Never"` | Set the restartPolicy |
99100
| global.jobs.certs.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":1002,"runAsNonRoot":true,"runAsUser":1002}` | Security context for the job containers. |
100101
| global.jobs.certs.tolerations | list | `[]` | Set list of tolerations |

charts/capsule-proxy/templates/certgen-job.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ spec:
5757
- --secret-name={{ include "capsule-proxy.fullname" . }}
5858
- --cert-name={{ .Values.options.SSLCertFileName }}
5959
- --key-name={{ .Values.options.SSLKeyFileName }}
60+
{{- with $Values.resources }}
61+
resources:
62+
{{- toYaml . | nindent 10 }}
63+
{{- end }}
6064
env:
6165
- name: NAMESPACE
6266
valueFrom:

charts/capsule-proxy/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ global:
8282
runAsGroup: 1002
8383
runAsNonRoot: true
8484
runAsUser: 1002
85+
# -- Job resources
86+
resources: {}
8587
# -- Set the node selector
8688
nodeSelector: {}
8789
# -- Set list of tolerations

0 commit comments

Comments
 (0)