[stable/karma] Add option for configmap annotations (#19569)

* [stable/karma] Add configMap.annotations option

Signed-off-by: Grace Do <xgrace@gmail.com>

* [stable/karma] Bump chart version

Signed-off-by: Grace Do <xgrace@gmail.com>

* Fix configmap annotations value

Signed-off-by: Grace Do <xgrace@gmail.com>
This commit is contained in:
Grace Do
2019-12-16 18:43:38 -08:00
committed by Kubernetes Prow Robot
parent d6b8bd59f6
commit e3217e81c5
4 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ home: https://github.com/prymitive/karma
sources:
- https://hub.docker.com/r/lmierzwa/karma/
- https://github.com/prymitive/karma
version: 1.3.0
version: 1.4.0
maintainers:
- name: davidkarlsen
email: david@davidkarlsen.com
+1
View File
@@ -64,6 +64,7 @@ The following table lists the configurable parameters of the karma chart and the
| `livenessProbe.period` | Speicy period of liveness probe | `5` |
| `livenessProbe.path` | Specify path liveness probe should hit | `/` |
| `configMap.enabled` | Provide a custom karma configuration | `false` |
| `configMap.annotations` | Annotations to add to the config map | `{}` |
| `configMap.rawConfig` | A karma compatible YAML configuration | `` |
| `certSecretNames` | Mount Alertmanager certificates to `/etc/certs/<name>` | `[]` |
+4 -1
View File
@@ -7,9 +7,12 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
{{- with .Values.configMap.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
name: "{{ .Release.Name }}-config"
data:
karma.conf: |
{{ toYaml .Values.configMap.rawConfig | indent 4 }}
{{- end }}
+1
View File
@@ -76,6 +76,7 @@ livenessProbe:
# to provide advanced configuration. NOTE, you must use port 8080!
configMap:
enabled: false
annotations: {}
# rawConfig:
# alertmanager:
# interval: 30s