Skip to content

Commit

Permalink
feat: Add resources to capsule-proxy-certgen job
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolai Emil Damm <[email protected]>
  • Loading branch information
devantler committed Dec 13, 2024
1 parent e132fb9 commit 0dcd7b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/capsule-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
4 changes: 4 additions & 0 deletions charts/capsule-proxy/templates/certgen-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions charts/capsule-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ global:
runAsGroup: 1002
runAsNonRoot: true
runAsUser: 1002
# -- Job resources
resources: {}
# -- Set the node selector
nodeSelector: {}
# -- Set list of tolerations
Expand Down

0 comments on commit 0dcd7b0

Please sign in to comment.