[stable/kube-slack] add ConfigMap (#11883)

* add ConfigMap and add it to Deployment

Signed-off-by: Syunsuke Komma <syunsuke@weseek.co.jp>

* update README

Signed-off-by: Syunsuke Komma <syunsuke@weseek.co.jp>
This commit is contained in:
Syunsuke Komma
2019-04-21 09:51:44 -07:00
committed by Kubernetes Prow Robot
parent 0c12bb288c
commit 148b5cd83e
5 changed files with 26 additions and 11 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: kube-slack
version: 0.4.0
version: 0.4.1
appVersion: v3.6.0
apiVersion: v1
description: Chart for kube-slack, a monitoring service for Kubernetes
+3 -1
View File
@@ -24,7 +24,9 @@ $ helm delete my-release
## Configuration
All configuration parameters are listed in [`values.yaml`](values.yaml). It is required to set the `slackUrl` value.
All configuration parameters are listed in [`values.yaml`](values.yaml).
The environment values passed to kube-slack can be described in `envVars` parameter. At a minimum, the `envVars.SLACK_URL` value must be set.
## RBAC
By default the chart will install the recommended RBAC roles and rolebindings.
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "kube-slack.fullname" . }}
labels:
app: {{ template "kube-slack.name" . }}
chart: {{ template "kube-slack.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
{{ toYaml .Values.envVars | indent 2 }}
+5 -5
View File
@@ -15,6 +15,8 @@ spec:
release: {{ .Release.Name }}
template:
metadata:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
labels:
app: {{ template "kube-slack.name" . }}
release: {{ .Release.Name }}
@@ -23,11 +25,9 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: SLACK_URL
value: {{ .Values.slackUrl }}
- name: NOT_READY_MIN_TIME
value: {{ .Values.notReadyMinTime | quote }}
envFrom:
- configMapRef:
name: {{ template "kube-slack.fullname" . }}
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- if .Values.rbac.create }}
+6 -4
View File
@@ -1,7 +1,9 @@
## URL of your Incoming Webhook in Slack:
slackUrl: ""
## Time to wait after pod becomes not ready before notifying
notReadyMinTime: 60000 # in ms
## Environment values for the deployment
envVars:
## URL of your Incoming Webhook in Slack:
SLACK_URL: ""
## Time to wait after pod becomes not ready before notifying
NOT_READY_MIN_TIME: "60000" # in ms
## Configuration for the deployment:
image: