diff --git a/charts/docker-registry/Chart.yaml b/charts/docker-registry/Chart.yaml index 102688e..fa782c4 100644 --- a/charts/docker-registry/Chart.yaml +++ b/charts/docker-registry/Chart.yaml @@ -3,7 +3,7 @@ name: docker-registry description: |- Helm chart to deploy [docker-registry](https://github.com/distribution/distribution). type: application -version: 0.0.3 +version: 0.0.4 appVersion: 2.8.1 home: https://github.com/slamdev/helm-charts/tree/master/charts/docker-registry icon: https://docs.docker.com/favicons/docs@2x.ico diff --git a/charts/docker-registry/README.md b/charts/docker-registry/README.md index ef37b47..7b1dad4 100644 --- a/charts/docker-registry/README.md +++ b/charts/docker-registry/README.md @@ -1,6 +1,6 @@ # docker-registry -![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.1](https://img.shields.io/badge/AppVersion-2.8.1-informational?style=flat-square) +![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.1](https://img.shields.io/badge/AppVersion-2.8.1-informational?style=flat-square) Helm chart to deploy [docker-registry](https://github.com/distribution/distribution). @@ -25,6 +25,7 @@ Helm chart to deploy [docker-registry](https://github.com/distribution/distribut | cleanregCronJob.image.repository | string | `"hcguersoy/cleanreg"` | image repository | | cleanregCronJob.image.tag | string | `"v0.8.0"` | image tag (chart's appVersion value will be used if not set) | | cleanregCronJob.imagePullSecrets | list | `[]` | image pull secret for private images | +| cleanregCronJob.podAnnotations | object | `{}` | pod annotations | | cleanregCronJob.podSecurityContext | object | `{}` | specifies security settings for a pod | | cleanregCronJob.resources | object | `{}` | custom resource configuration | | cleanregCronJob.restartPolicy | string | `"Never"` | container restart policy | @@ -41,6 +42,7 @@ Helm chart to deploy [docker-registry](https://github.com/distribution/distribut | garbageCollectCronJob.deleteUntagged | bool | `true` | delete manifests that are not currently referenced via tag | | garbageCollectCronJob.dryRun | bool | `false` | do everything except remove the blobs | | garbageCollectCronJob.failedJobsHistoryLimit | int | `1` | the number of failed finished jobs to retain | +| garbageCollectCronJob.podAnnotations | object | `{}` | pod annotations | | garbageCollectCronJob.resources | object | `{}` | custom resource configuration | | garbageCollectCronJob.restartPolicy | string | `"Never"` | container restart policy | | garbageCollectCronJob.schedule | string | `"@daily"` | the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron | diff --git a/charts/docker-registry/templates/cronjob-cleanreg.yaml b/charts/docker-registry/templates/cronjob-cleanreg.yaml index de51ab4..9363dab 100644 --- a/charts/docker-registry/templates/cronjob-cleanreg.yaml +++ b/charts/docker-registry/templates/cronjob-cleanreg.yaml @@ -6,6 +6,8 @@ metadata: labels: {{- include "docker-registry.labels" . | nindent 4 }} app.kubernetes.io/component: cleanreg + annotations: + {{- toYaml .Values.cleanregCronJob.annotations | nindent 4 }} spec: concurrencyPolicy: Forbid successfulJobsHistoryLimit: {{ .Values.cleanregCronJob.successfulJobsHistoryLimit }} @@ -22,6 +24,8 @@ spec: labels: {{- include "docker-registry.selectorLabels" . | nindent 12 }} app.kubernetes.io/component: cleanreg + annotations: + {{- toYaml .Values.cleanregCronJob.podAnnotations | nindent 12 }} spec: restartPolicy: {{ .Values.cleanregCronJob.restartPolicy }} {{- with .Values.cleanregCronJob.imagePullSecrets }} diff --git a/charts/docker-registry/templates/cronjob-gc.yaml b/charts/docker-registry/templates/cronjob-gc.yaml index 1b1d8dc..e5910e3 100644 --- a/charts/docker-registry/templates/cronjob-gc.yaml +++ b/charts/docker-registry/templates/cronjob-gc.yaml @@ -6,6 +6,8 @@ metadata: labels: {{- include "docker-registry.labels" . | nindent 4 }} app.kubernetes.io/component: garbage-collect + annotations: + {{- toYaml .Values.garbageCollectCronJob.annotations | nindent 4 }} spec: concurrencyPolicy: Forbid successfulJobsHistoryLimit: {{ .Values.garbageCollectCronJob.successfulJobsHistoryLimit }} @@ -22,6 +24,8 @@ spec: labels: {{- include "docker-registry.selectorLabels" . | nindent 12 }} app.kubernetes.io/component: garbage-collect + annotations: + {{- toYaml .Values.garbageCollectCronJob.podAnnotations | nindent 12 }} spec: restartPolicy: {{ .Values.garbageCollectCronJob.restartPolicy }} {{- with .Values.imagePullSecrets }} diff --git a/charts/docker-registry/values.yaml b/charts/docker-registry/values.yaml index 6c22996..57d5ded 100644 --- a/charts/docker-registry/values.yaml +++ b/charts/docker-registry/values.yaml @@ -130,6 +130,8 @@ additionalResources: [ ] # mykey: my-value garbageCollectCronJob: + # garbageCollectCronJob.podAnnotations -- pod annotations + podAnnotations: { } # garbageCollectCronJob.successfulJobsHistoryLimit -- the number of successful finished jobs to retain successfulJobsHistoryLimit: 3 # garbageCollectCronJob.failedJobsHistoryLimit -- the number of failed finished jobs to retain @@ -153,6 +155,9 @@ garbageCollectCronJob: cleanregCronJob: + # cleanregCronJob.podAnnotations -- pod annotations + podAnnotations: {} + image: # cleanregCronJob.image.repository -- image repository repository: hcguersoy/cleanreg