diff --git a/README.md b/README.md index ef4ee90..ad8e2e5 100644 --- a/README.md +++ b/README.md @@ -117,8 +117,9 @@ their default values. | `extraEnvVars` | Additional environment variables to the pod | `[]` | | `initContainers` | Init containers to be created in the pod | `[]` | | `garbageCollect.enabled` | If true, will deploy garbage-collector cronjob | `false` | -| `garbageCollect.deleteUntagged` | If true, garbage-collector will delete manifests that are not currently referenced via tag | `true` | | -| `garbageCollect.schedule` | CronTab schedule, please use standard crontab format | `0 1 * * *` | | +| `garbageCollect.deleteUntagged` | If true, garbage-collector will delete manifests that are not currently referenced via tag | `true` | +| `garbageCollect.schedule` | CronTab schedule, please use standard crontab format | `0 1 * * *` | +| `garbageCollect.resources` | garbage-collector requested resources | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. diff --git a/templates/cronjob.yaml b/templates/cronjob.yaml index 80b18d5..780cf87 100644 --- a/templates/cronjob.yaml +++ b/templates/cronjob.yaml @@ -49,6 +49,7 @@ spec: - garbage-collect - --delete-untagged={{ .Values.garbageCollect.deleteUntagged }} - /etc/docker/registry/config.yml + resources: {{ toYaml .Values.garbageCollect.resources | nindent 12 }} env: {{ include "docker-registry.envs" . | nindent 16 }} {{- if .Values.containerSecurityContext.enabled }} securityContext: {{ omit .Values.containerSecurityContext "enabled" | toYaml | nindent 16 }} diff --git a/values.yaml b/values.yaml index 4c000e3..9cfe565 100644 --- a/values.yaml +++ b/values.yaml @@ -229,3 +229,4 @@ garbageCollect: enabled: false deleteUntagged: true schedule: "0 1 * * *" + resources: {}