diff --git a/helm/kubemonkey/Chart.yaml b/helm/kubemonkey/Chart.yaml index 1379edd9..4d7c9449 100644 --- a/helm/kubemonkey/Chart.yaml +++ b/helm/kubemonkey/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 appVersion: 0.4.0 description: A Helm chart for Kubernetes name: kube-monkey -version: 1.4.0 +version: 1.4.1 diff --git a/helm/kubemonkey/README.md b/helm/kubemonkey/README.md index f21cbec6..b09a36d6 100644 --- a/helm/kubemonkey/README.md +++ b/helm/kubemonkey/README.md @@ -111,6 +111,7 @@ $ helm get manifest my-release | `config.debug.enabled` | debug mode,need to be enabled to see debuging behaviour | false | | `config.debug.schedule_immediate_kill` | immediate pod kill matching other rules apart from time | false | | `config.notifications.enabled` | enables reporting of attacks to an HTTP endpoint | false | +| `config.notifications.proxy` | notifications proxy URL | | | `config.notifications.attacks` | HTTP collector in the form (endpoint,message,headers) where attacks will be reported to | | | `args.logLevel` | go log level | 5 | | `args.logDir` | log directory | /var/log/kube-monkey | diff --git a/helm/kubemonkey/templates/configmap.yaml b/helm/kubemonkey/templates/configmap.yaml index 31f3f5d0..d297c513 100644 --- a/helm/kubemonkey/templates/configmap.yaml +++ b/helm/kubemonkey/templates/configmap.yaml @@ -17,6 +17,13 @@ data: {{- end }} time_zone = {{ .Values.config.timeZone | quote }} [debug] - enabled= {{ .Values.config.debug.enabled }} - schedule_immediate_kill= {{ .Values.config.debug.schedule_immediate_kill }} + enabled = {{ .Values.config.debug.enabled }} + schedule_immediate_kill = {{ .Values.config.debug.schedule_immediate_kill }} + [notifications] + enabled = {{ .Values.config.notifications.enabled }} + {{- if ne .Values.config.notifications.proxy "" }} + proxy = {{ .Values.config.notifications.proxy}} + {{- end }} + [notifications.attacks] +{{ indent 6 .Values.config.notifications.attacks -}} diff --git a/helm/kubemonkey/templates/rbac.yaml b/helm/kubemonkey/templates/rbac.yaml index d05ba8bd..23048b5a 100644 --- a/helm/kubemonkey/templates/rbac.yaml +++ b/helm/kubemonkey/templates/rbac.yaml @@ -12,7 +12,7 @@ metadata: --- -{{- if .Values.rbac.enabled -}} +{{- if .Values.rbac.enabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/helm/kubemonkey/values.yaml b/helm/kubemonkey/values.yaml index 372f1c18..85fe7b46 100644 --- a/helm/kubemonkey/values.yaml +++ b/helm/kubemonkey/values.yaml @@ -29,6 +29,10 @@ config: debug: enabled: false # if you want to enable debugging and see how pods killed immediately set enabled and schedule_immediate_kill to true schedule_immediate_kill: false + notifications: + enabled: false + proxy: "" + attacks: "" args: logLevel: 5