Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 0 additions & 7 deletions charts/aws-node-termination-handler-2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ helm repo add eks https://aws.github.io/eks-charts/
* `serviceAccount.annotations` - Annotation names and values to add to service account. Default: `{}`.
* `serviceAccount.create` - Enable creation of service account. Helm release may fail if service account already exists. Default: `true`.
* `serviceAccount.name` - Name of the service account. If `serviceAccount.create` is enabled then the default will be generated from the release name and chart name. If `serviceAccount.create` is disabled then the default is `"default"`.
* `terminator.defaults.drain.force` - Default value of `Terminator`'s `spec.drain.force` property. Default: `true`.
* `terminator.defaults.drain.gracePeriodSeconds` - Default value of `Terminator`'s `spec.drain.gracePeriodSeconds` property. Default: `-1`.
* `terminator.defaults.drain.ignoreAllDaemonSets` - Default value of `Terminator`'s `spec.drain.ignoreAllDaemonSets` property. Default: `true`.
* `terminator.defaults.drain.deleteEmptyDirData` - Default value of `Terminator`'s `spec.drain.deleteEmptyDirData` property. Default: `true`.
* `terminator.defaults.drain.timeoutSeconds` - Default value of `Terminator`'s `spec.drain.timeoutSeconds` property. Default: `120`.
* `terminator.defaults.webhook.headers` - Default value of `Terminator`'s `spec.webhook.headers` property. Default: `[{"name": "Content-Type", "value": "application/json"}]`.
* `terminator.defaults.webhook.template` - Default value of `Terminator`'s `spec.webhook.template` property. Default: `'{"text":"[NTH][Instance Interruption] EventID: {{ .EventID }} - Kind: {{ .Kind }} - Instance: {{ .InstanceID }} - Node: {{ .NodeName }} - Start Time: {{ .StartTime }}"}'`.
* `webhook.env` - List of environment variables to set in the webhook container. See [core/v1 Pod.spec.containers.env](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#container-v1-core) Default: `[]`.
* `webhook.image` - Image repository for the webhook controller.
* `webhook.logLevel` - Override the global logging level for the webhook container. Default: `""`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,33 +64,23 @@ spec:
force:
description: Enable termination of pods without a controller.
type: boolean
{{- with .Values.terminator.defaults.drain.force }}
default: {{ . }}
{{- end }}
default: true
gracePeriodSeconds:
description: Wait time for pods to exit. If negative then the pod's configured gracetime will be used.
description: Wait time for pods to terminate. If negative then the pod's configured gracetime will be used.
type: integer
{{- with .Values.terminator.defaults.drain.gracePeriodSeconds }}
default: {{ . }}
{{- end }}
default: -1
ignoreAllDaemonSets:
description: Enable ignoring pods managed by a DaemonSet.
type: boolean
{{- with .Values.terminator.defaults.drain.ignoreAllDaemonSets }}
default: {{ . }}
{{- end }}
default: true
deleteEmptyDirData:
description: Enable termination of pods with local data that will be deleted.
type: boolean
{{- with .Values.terminator.defaults.drain.deleteEmptyDirData }}
default: {{ . }}
{{- end }}
default: true
timeoutSeconds:
description: Wait time before failing the action. If zero, wait forever.
description: Wait time before failing the action. If zero, then wait forever.
type: integer
{{- with .Values.terminator.defaults.drain.timeoutSeconds }}
default: {{ . }}
{{- end }}
default: 120
events:
description: Specify what action should be taken when a particular message type is received.
type: object
Expand Down Expand Up @@ -155,17 +145,16 @@ spec:
required:
- name
- value
{{- with .Values.terminator.defaults.webhook.headers }}
default:
{{- toYaml . | nindent 22 }}
{{- end }}
- name: "Content-Type"
value: "application/json"
template:
description: Used to generate the request payload.
description: |
Used to generate the request payload. Template used to generate webhook request body.
The template may reference fields EventID, Kind, InstanceID, NodeName, and StartTime.
See https://pkg.go.dev/text/template documentation for template format examples and explanation.
type: string
{{- with .Values.terminator.defaults.webhook.template }}
default: |
{{ . }}
{{- end }}
default: '{"text":"[NTH][Instance Interruption] EventID: {{ .EventID }} - Kind: {{ .Kind }} - Instance: {{ .InstanceID }} - Node: {{ .NodeName }} - Start Time: {{ .StartTime }}"}'
status:
description: TerminatorStatus defines the observed state of Terminator
type: object
Expand Down
27 changes: 0 additions & 27 deletions charts/aws-node-termination-handler-2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,33 +138,6 @@ serviceAccount:
annotations: {}
# "eks.amazonaws.com/role-arn": <Service Account ARN>

terminator:
defaults:
drain:
# Terminate pods that do not have a controller.
force: true
# Duration to wait for each pod to terminate. If negative then the pod's grace period will be used.
gracePeriodSeconds: -1
# Do not terminate pods managed by a DaemonSet.
ignoreAllDaemonSets: true
# Terminate pods that have local data that will be deleted.
deleteEmptyDirData: true
# Duration to wait before giving up. If 0, then wait forever.
timeoutSeconds: 120
webhook:
# List of HTTP heads to include in webhook requests.
headers:
- name: Content-Type
value: application/json
# Template used to generate webhook request body. The template may reference:
# * EventID
# * Kind
# * InstanceID
# * NodeName
# * StartTime
# See https://pkg.go.dev/text/template documentation for template format examples and explanation.
template: '{"text":"[NTH][Instance Interruption] EventID: {{ .EventID }} - Kind: {{ .Kind }} - Instance: {{ .InstanceID }} - Node: {{ .NodeName }} - Start Time: {{ .StartTime }}"}'

webhook:
# Environment variables.
env: []
Expand Down