diff --git a/charts/capsule-proxy/README.md b/charts/capsule-proxy/README.md index 06d21bba..3295fb58 100644 --- a/charts/capsule-proxy/README.md +++ b/charts/capsule-proxy/README.md @@ -95,6 +95,7 @@ If you only need to make minor customizations, you can specify them on the comma | global.jobs.certs.nodeSelector | object | `{}` | Set the node selector | | global.jobs.certs.podSecurityContext | object | `{"seccompProfile":{"type":"RuntimeDefault"}}` | Security context for the job pods. | | global.jobs.certs.priorityClassName | string | `""` | Set a pod priorityClassName | +| global.jobs.certs.resources | object | `{}` | Job resources | | global.jobs.certs.restartPolicy | string | `"Never"` | Set the restartPolicy | | global.jobs.certs.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":1002,"runAsNonRoot":true,"runAsUser":1002}` | Security context for the job containers. | | global.jobs.certs.tolerations | list | `[]` | Set list of tolerations | diff --git a/charts/capsule-proxy/templates/certgen-job.yaml b/charts/capsule-proxy/templates/certgen-job.yaml index 5b3d9c49..d7239479 100644 --- a/charts/capsule-proxy/templates/certgen-job.yaml +++ b/charts/capsule-proxy/templates/certgen-job.yaml @@ -57,6 +57,10 @@ spec: - --secret-name={{ include "capsule-proxy.fullname" . }} - --cert-name={{ .Values.options.SSLCertFileName }} - --key-name={{ .Values.options.SSLKeyFileName }} + {{- with $Values.resources }} + resources: + {{- toYaml . | nindent 10 }} + {{- end }} env: - name: NAMESPACE valueFrom: diff --git a/charts/capsule-proxy/values.yaml b/charts/capsule-proxy/values.yaml index 0a4b3bdf..42e12db7 100644 --- a/charts/capsule-proxy/values.yaml +++ b/charts/capsule-proxy/values.yaml @@ -82,6 +82,8 @@ global: runAsGroup: 1002 runAsNonRoot: true runAsUser: 1002 + # -- Job resources + resources: {} # -- Set the node selector nodeSelector: {} # -- Set list of tolerations