Skip to content

Commit f017240

Browse files
committed
Added pod Annotations
1 parent 17560c4 commit f017240

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ apps:
143143
port: 3000
144144
autoscaling:
145145
enabled: false
146+
podAnnotations:
147+
ad.datadoghq.com/celery.logs: '[{"source": "celery","service": "celery"}]'
146148
jobs:
147149
- name: db-migrate
148150
command: "bundle exec rake db:migrate"

charts/tiphys/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.6.1
18+
version: 0.7.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/tiphys/templates/app.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ metadata:
6666
name: {{ include "opszero.fullname" $ }}-{{ $app.name }}
6767
labels:
6868
{{- include "opszero.selectorLabels" $ | nindent 4 }}-{{ $app.name }}
69+
{{- if $.Values.datadog.enabled }}
70+
tags.datadoghq.com/env: {{ $.Values.datadog.envName | quote }}
71+
tags.datadoghq.com/service: {{ include "opszero.fullname" $ }}-{{ $app.name }}
72+
tags.datadoghq.com/version: {{ default $.Values.defaultImage $app.image | quote }}
73+
{{- end }}
6974
spec:
7075
{{- if not $app.service.autoscaling.enabled }}
7176
replicas: {{ $.Values.replicaCount }}
@@ -77,8 +82,16 @@ spec:
7782
metadata:
7883
annotations:
7984
rollme: {{ randAlphaNum 5 | quote }}
85+
{{- with $app.service.podAnnotations -}}
86+
{{ toYaml . | nindent 8 }}
87+
{{- end }}
8088
labels:
8189
{{- include "opszero.selectorLabels" $ | nindent 8 }}-{{ $app.name }}
90+
{{- if $.Values.datadog.enabled }}
91+
tags.datadoghq.com/env: {{ $.Values.datadog.envName | quote }}
92+
tags.datadoghq.com/service: {{ include "opszero.fullname" $ }}-{{ $app.name }}
93+
tags.datadoghq.com/version: {{ default $.Values.defaultImage $app.image | quote }}
94+
{{- end }}
8295
spec:
8396
containers:
8497
- name: {{ $.Chart.Name }}

charts/tiphys/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ affinity: {}
5050
secrets: {}
5151
envRaw: {}
5252

53+
datadog:
54+
enabled: false
55+
5356
redis:
5457
enabled: false
5558
auth:

0 commit comments

Comments
 (0)