Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add webhook spec to CRD
  • Loading branch information
cjerad committed May 17, 2022
commit a1c2278f90582c7c9b5518e16df2b7228e44bc34
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,42 @@ spec:
- Cordon
- NoAction
default: CordonAndDrain
webhook:
description: Send notification of handled events.
type: object
properties:
url:
description: URL to send notifications.
type: string
proxyURL:
description: Proxy URL to use to send notifications.
type: string
headers:
description: HTTP headers to include when sending notifications.
type: array
items:
type: object
properties:
name:
description: Header name.
type: string
value:
description: Header value.
type: string
required:
- name
- value
{{- with .Values.terminator.defaults.webhook.headers }}
default:
{{- toYaml . | nindent 22 }}
{{- end }}
template:
description: Used to generate the request payload.
type: string
{{- with .Values.terminator.defaults.webhook.template }}
default: |
{{ . }}
{{- end }}
status:
description: TerminatorStatus defines the observed state of Terminator
type: object
Expand Down
5 changes: 5 additions & 0 deletions src/charts/aws-node-termination-handler-2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ terminator:
ignoreAllDaemonSets: true
deleteEmptyDirData: true
timeoutSeconds: 120
webhook:
headers:
- name: Content-Type
value: application/json
template: '{"text":"[NTH][Instance Interruption] EventID: {{ .EventID }} - Kind: {{ .Kind }} - Instance: {{ .InstanceID }} - Node: {{ .NodeName }} - Start Time: {{ .StartTime }}"}'

aws:
# AWS region to use in API calls.
Expand Down