Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/eventrouter] Add new configs (#6454)
Browse files Browse the repository at this point in the history
* [stable/eventrouter] fix ConfigMap value

* [stable/eventrouter] add support to podAnnotations

* [stable/eventrouter] add support to containerPorts

* [stable/eventrouter] Bump chart to 0.2.0
  • Loading branch information
ggarnier authored and k8s-ci-robot committed Jul 4, 2018
1 parent 48f8a87 commit 10eedf0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/eventrouter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for eventruter (https://github.com/heptiolabs/eventrouter)
name: eventrouter
version: 0.1.1
version: 0.2.0
appVersion: 0.2
home: https://github.com/heptiolabs/eventrouter
sources:
Expand Down
2 changes: 2 additions & 0 deletions stable/eventrouter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ The following table lists the configurable parameters of the eventrouter chart a
| `tolerations` | List of node taints to tolerate | `[]` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `sink` | Sink to send the events to | `glog` |
| `podAnnotations` | Annotations for pod metadata | `{}` |
| `containerPorts` | List of ports for the container | `[]` |
2 changes: 1 addition & 1 deletion stable/eventrouter/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ apiVersion: v1
data:
config.json: |-
{
"sink": {{ .Values.sink }}
"sink": "{{ .Values.sink }}"
}
8 changes: 8 additions & 0 deletions stable/eventrouter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ spec:
labels:
app: {{ template "eventrouter.name" . }}
release: {{ .Release.Name }}
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
containers:
- name: {{ .Chart.Name }}
Expand All @@ -23,6 +27,10 @@ spec:
volumeMounts:
- name: config-volume
mountPath: /etc/eventrouter
{{- if .Values.containerPorts }}
ports:
{{ toYaml .Values.containerPorts | indent 10 }}
{{- end }}
resources:
{{ toYaml .Values.resources | indent 10 }}
{{- if .Values.nodeSelector }}
Expand Down
4 changes: 4 additions & 0 deletions stable/eventrouter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ tolerations: []
nodeSelector: {}

sink: glog

podAnnotations: {}

containerPorts: []

0 comments on commit 10eedf0

Please sign in to comment.