Skip to content

Commit a61934b

Browse files
authored
Merge pull request #338 from gpkc/add-service-annotations
Add service.annotations
2 parents d614cf1 + 18677f9 commit a61934b

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

charts/celery-exporter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ maintainers:
1313
- name: danihodovic
1414
- name: adinhodovic
1515

16-
version: 0.7.0
16+
version: 0.8.0
1717
appVersion: 0.9.2

charts/celery-exporter/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ helm install celery-exporter danihodovic/celery-exporter --set env[0].name=CE_BR
6969
| securityContext | object | `{}` | |
7070
| service.port | int | `9808` | |
7171
| service.type | string | `"ClusterIP"` | |
72+
| service.annotations | object | `{}` | |
7273
| serviceAccount.annotations | object | `{}` | |
7374
| serviceAccount.create | bool | `true` | |
7475
| serviceAccount.name | string | `""` | |

charts/celery-exporter/templates/service.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ metadata:
44
name: {{ include "celery-exporter.fullname" . }}
55
labels:
66
{{- include "celery-exporter.labels" . | nindent 4 }}
7+
{{- with .Values.service.annotations }}
8+
annotations:
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
11+
712
spec:
813
type: {{ .Values.service.type }}
914
ports:

charts/celery-exporter/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ securityContext: {}
4848
service:
4949
type: ClusterIP
5050
port: 9808
51+
annotations: {}
52+
# prometheus.io/scrape: "true"
53+
# prometheus.io/port: "9808"
5154

5255
ingress:
5356
enabled: false

0 commit comments

Comments
 (0)