Skip to content

Commit 6b1dcc3

Browse files
committed
add support of deployment annotations
1 parent bb0f31f commit 6b1dcc3

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

charts/docker-registry/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: docker-registry
33
description: |-
44
Helm chart to deploy [docker-registry](https://github.com/distribution/distribution).
55
type: application
6-
version: 0.0.1
6+
version: 0.0.2
77
appVersion: 2.8.1
88
home: https://github.com/slamdev/helm-charts/tree/master/charts/docker-registry
99
icon: https://docs.docker.com/favicons/docs@2x.ico

charts/docker-registry/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# docker-registry
22

3-
![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-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)
3+
![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-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)
44

55
Helm chart to deploy [docker-registry](https://github.com/distribution/distribution).
66

@@ -20,6 +20,7 @@ Helm chart to deploy [docker-registry](https://github.com/distribution/distribut
2020
| affinity | object | `{}` | affinity for scheduler pod assignment |
2121
| config | string | `"http:\n addr: :5000"` | docker-registry config to provision inside of the container |
2222
| containerPorts | list | `[{"containerPort":5000,"name":"http","protocol":"TCP"}]` | ports exposed by container |
23+
| deploymentAnnotations | object | `{}` | annotations to add to the deployment |
2324
| env | list | `[]` | additional environment variables for the deployment |
2425
| fullnameOverride | string | `""` | full name of the chart. |
2526
| garbageCollectCronJob.deleteUntagged | bool | `true` | delete manifests that are not currently referenced via tag |

charts/docker-registry/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
namespace: {{ .Release.Namespace }}
66
labels:
77
{{- include "docker-registry.labels" . | nindent 4 }}
8+
{{- with .Values.deploymentAnnotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
replicas: {{ .Values.replicaCount }}
1014
selector:

charts/docker-registry/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ serviceAccount:
2424
# serviceAccount.name -- the name of the service account to use; if not set and create is true, a name is generated using the fullname template
2525
name:
2626

27+
# deploymentAnnotations -- annotations to add to the deployment
28+
deploymentAnnotations: { }
29+
2730
# podSecurityContext -- specifies security settings for a pod
2831
podSecurityContext: { }
2932
# fsGroup: 2000

0 commit comments

Comments
 (0)