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 <camilo@riverapineda.com>

* bump version

Signed-off-by: Camilo Rivera <camilo@riverapineda.com>
This commit is contained in:
Camilo Rivera
2019-06-04 08:11:33 -07:00
committed by Kubernetes Prow Robot
parent 937a3f9b8f
commit 8d932f59ca
4 changed files with 9 additions and 1 deletions
@@ -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
@@ -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`
@@ -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"
@@ -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