Skip to content

Commit

Permalink
Merge pull request #338 from gpkc/add-service-annotations
Browse files Browse the repository at this point in the history
Add service.annotations
  • Loading branch information
adinhodovic authored Dec 1, 2024
2 parents d614cf1 + 18677f9 commit a61934b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/celery-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
- name: danihodovic
- name: adinhodovic

version: 0.7.0
version: 0.8.0
appVersion: 0.9.2
1 change: 1 addition & 0 deletions charts/celery-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ helm install celery-exporter danihodovic/celery-exporter --set env[0].name=CE_BR
| securityContext | object | `{}` | |
| service.port | int | `9808` | |
| service.type | string | `"ClusterIP"` | |
| service.annotations | object | `{}` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
Expand Down
5 changes: 5 additions & 0 deletions charts/celery-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ metadata:
name: {{ include "celery-exporter.fullname" . }}
labels:
{{- include "celery-exporter.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}

spec:
type: {{ .Values.service.type }}
ports:
Expand Down
3 changes: 3 additions & 0 deletions charts/celery-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ securityContext: {}
service:
type: ClusterIP
port: 9808
annotations: {}
# prometheus.io/scrape: "true"
# prometheus.io/port: "9808"

ingress:
enabled: false
Expand Down

0 comments on commit a61934b

Please sign in to comment.