Skip to content

Commit

Permalink
[helm/charts] Add annotations support in deployment of cerebro (helm#…
Browse files Browse the repository at this point in the history
…10281)

* Add support for annotations in deployment of cerebro

Signed-off-by: faizanahmad055 <[email protected]>

* Remove trailing spaces

Signed-off-by: faizanahmad055 <[email protected]>

* Merge uptream changes and bump cerebro version

Signed-off-by: faizanahmad055 <[email protected]>
  • Loading branch information
faizanahmad055 authored and k8s-ci-robot committed Jan 8, 2019
1 parent 296252f commit baccf6a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/cerebro/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sources:
- https://github.com/lmenezes/cerebro-docker
- https://github.com/lmenezes/cerebro
name: cerebro
version: 0.5.1
version: 0.5.2
maintainers:
- name: davidkarlsen
email: [email protected]
1 change: 1 addition & 0 deletions stable/cerebro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ The following table lists the configurable parameters of the cerebro chart and t
| `init.image.repository` | The image to run | `docker.io/busybox` |
| `init.image.tag` | The image tag to pull | `musl` |
| `init.image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `deployment.annotations` | Annotations for deployment | `{}` |
| `service.type` | Type of Service | `ClusterIP` |
| `service.port` | Port for kubernetes service | `80` |
| `service.annotations` | Annotations to add to the service | `{}` |
Expand Down
4 changes: 4 additions & 0 deletions stable/cerebro/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
chart: {{ template "cerebro.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.deployment.annotations }}
annotations:
{{ toYaml .Values.deployment.annotations | indent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
Expand Down
3 changes: 3 additions & 0 deletions stable/cerebro/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ init:
tag: musl
pullPolicy: IfNotPresent

deployment:
annotations: {}

service:
type: ClusterIP
port: 80
Expand Down

0 comments on commit baccf6a

Please sign in to comment.