From 8d932f59ca3fb1a4942843bded8e2cbfe8938d3a Mon Sep 17 00:00:00 2001 From: Camilo Rivera Date: Tue, 4 Jun 2019 23:11:33 +0800 Subject: [PATCH] stable/k8s-spot-termination-handler] no way to set verbose on the deamonset #14065 (#14067) * Add Verbose env var to deamonset Signed-off-by: Camilo Rivera * bump version Signed-off-by: Camilo Rivera --- stable/k8s-spot-termination-handler/Chart.yaml | 2 +- stable/k8s-spot-termination-handler/README.md | 1 + stable/k8s-spot-termination-handler/templates/daemonset.yaml | 4 ++++ stable/k8s-spot-termination-handler/values.yaml | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/k8s-spot-termination-handler/Chart.yaml b/stable/k8s-spot-termination-handler/Chart.yaml index e9f77466d1..13a53b86ae 100644 --- a/stable/k8s-spot-termination-handler/Chart.yaml +++ b/stable/k8s-spot-termination-handler/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "1.13.0-1" description: The K8s Spot Termination handler handles draining AWS Spot Instances in response to termination requests. name: k8s-spot-termination-handler -version: 1.2.1 +version: 1.2.2 keywords: - spot - termination diff --git a/stable/k8s-spot-termination-handler/README.md b/stable/k8s-spot-termination-handler/README.md index 61c5c4ece9..dbd9b7becd 100644 --- a/stable/k8s-spot-termination-handler/README.md +++ b/stable/k8s-spot-termination-handler/README.md @@ -30,6 +30,7 @@ Parameter | Description | Default `image.tag` | container image tag | `1.13.0-1` `image.pullPolicy` | container image pull policy | `IfNotPresent` `pollInterval` | the interval in seconds between attempts to poll EC2 metadata API for termination events | `"5"` +`verbose` | Enable verbose | _not defined_ `slackUrl` | Slack webhook URL to send messages when a termination notice is received | _not defined_ `clusterName` | if `slackUrl` is set - use this cluster name in Slack messages | _not defined_ `enableLogspout` | if `true`, enable the Logspout log capturing. Logspout should be deployed separately | `false` diff --git a/stable/k8s-spot-termination-handler/templates/daemonset.yaml b/stable/k8s-spot-termination-handler/templates/daemonset.yaml index 64fbdc2331..409492a4eb 100644 --- a/stable/k8s-spot-termination-handler/templates/daemonset.yaml +++ b/stable/k8s-spot-termination-handler/templates/daemonset.yaml @@ -20,6 +20,10 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: + {{- with .Values.verbose }} + - name: VERBOSE + value: {{ . | quote }} + {{- end }} {{- if not .Values.enableLogspout }} - name: LOGSPOUT value: "ignore" diff --git a/stable/k8s-spot-termination-handler/values.yaml b/stable/k8s-spot-termination-handler/values.yaml index 249aaff653..4cb15c9008 100644 --- a/stable/k8s-spot-termination-handler/values.yaml +++ b/stable/k8s-spot-termination-handler/values.yaml @@ -20,6 +20,9 @@ image: # Poll the metadata every pollInterval seconds for termination events: pollInterval: 5 +# Set VERBOSE=1 to get more output +# verbose: 1 + # Send notifications to a Slack webhook URL - replace with your own value and uncomment: # slackUrl: https://hooks.slack.com/services/EXAMPLE123/EXAMPLE123/example1234567