Skip to content

Commit c7d3bc3

Browse files
committed
adding deployment annotations
Signed-off-by: Edward Brough <[email protected]>
1 parent d74c33a commit c7d3bc3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ their default values.
4646
| `serviceAccount.create` | Create ServiceAccount | `false` |
4747
| `serviceAccount.name` | ServiceAccount name | `nil` |
4848
| `serviceAccount.annotations` | Annotations to add to the ServiceAccount | `{}` |
49+
| `deployment.annotations` | Annotations to add to the Deployment | `{}` |
4950
| `service.port` | TCP port on which the service is exposed | `5000` |
5051
| `service.type` | service type | `ClusterIP` |
5152
| `service.clusterIP` | if `service.type` is `ClusterIP` and this is non-empty, sets the cluster IP of the service | `nil` |

templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ metadata:
88
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
99
release: {{ .Release.Name }}
1010
heritage: {{ .Release.Service }}
11+
{{- if .Values.deployment.annotations }}
12+
annotations:
13+
{{ toYaml .Values.deployment.annotations | indent 4 }}
14+
{{- end }}
1115
spec:
1216
selector:
1317
matchLabels:

values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ image:
2323
pullPolicy: IfNotPresent
2424
# imagePullSecrets:
2525
# - name: docker
26+
deployment: {}
27+
# annotations:
2628
service:
2729
name: registry
2830
type: ClusterIP

0 commit comments

Comments
 (0)