diff --git a/config/helm/aws-node-termination-handler/README.md b/config/helm/aws-node-termination-handler/README.md index 26408113..854dac25 100644 --- a/config/helm/aws-node-termination-handler/README.md +++ b/config/helm/aws-node-termination-handler/README.md @@ -61,7 +61,7 @@ Parameter | Description | Default `webhookURLSecretName` | Pass Webhook URL as a secret. Secret Key: `webhookurl`, Value: `` | None `webhookProxy` | Uses the specified HTTP(S) proxy for sending webhooks | `` `webhookHeaders` | Replaces the default webhook headers. | `{"Content-type":"application/json"}` -`webhookTemplate` | Replaces the default webhook message template. | `{"text":"[NTH][Instance Interruption] EventID: {{ .EventID }} - Kind: {{ .Kind }} - Description: {{ .Description }} - State: {{ .State }} - Start Time: {{ .StartTime }}"}` +`webhookTemplate` | Replaces the default webhook message template. | `{"text":"[NTH][Instance Interruption] EventID: {{ .EventID }} - Kind: {{ .Kind }} - Instance: {{ .InstanceID }} - Description: {{ .Description }} - Start Time: {{ .StartTime }}"}` `webhookTemplateConfigMapName` | Pass Webhook template file as configmap | None `webhookTemplateConfigMapKey` | Name of the template file stored in the configmap| None `enableScheduledEventDraining` | [EXPERIMENTAL] If true, drain nodes before the maintenance window starts for an EC2 instance scheduled event | `false` diff --git a/pkg/config/config.go b/pkg/config/config.go index 5e89bcce..62d4796b 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -47,7 +47,7 @@ const ( webhookHeadersDefault = `{"Content-type":"application/json"}` webhookTemplateConfigKey = "WEBHOOK_TEMPLATE" webhookTemplateFileConfigKey = "WEBHOOK_TEMPLATE_FILE" - webhookTemplateDefault = `{"text":"[NTH][Instance Interruption] EventID: {{ .EventID }} - Kind: {{ .Kind }} - Description: {{ .Description }} - Start Time: {{ .StartTime }}"}` + webhookTemplateDefault = `{"text":"[NTH][Instance Interruption] EventID: {{ .EventID }} - Kind: {{ .Kind }} - Instance: {{ .InstanceID }} - Description: {{ .Description }} - Start Time: {{ .StartTime }}"}` enableScheduledEventDrainingConfigKey = "ENABLE_SCHEDULED_EVENT_DRAINING" enableScheduledEventDrainingDefault = false enableSpotInterruptionDrainingConfigKey = "ENABLE_SPOT_INTERRUPTION_DRAINING"