Skip to content

Conversation

imuqtadir
Copy link
Contributor

Issue #, if available: #359

Description of changes: Provide list of running pods as webhook notifications. This will be available as override to default webhook template.

Sample Webhook Template:

`{"text":"[NTH][Instance Interruption] EventID: {{ .EventID }} - Kind: {{ .Kind }} - Node: {{ .NodeName }} - Pods: {{ .Pods }} - Start Time: {{ .StartTime }}"}`

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@imuqtadir imuqtadir requested a review from bwagner5 March 12, 2021 17:47
@imuqtadir imuqtadir changed the title Add running pods to webhook notifications Add running pods (soon to be evicted) to webhook notifications Mar 12, 2021
Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@IvanDechovsky
Copy link

Using the latest tag, with a webhook template of "Pods: {{ .Pods }}" the notification returns Pods: []. @imuqtadir does it function for you properly after merging the change?

@imuqtadir
Copy link
Contributor Author

Yeah, this PR undo some of my changes #411

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

is it possible to get list of pod names running on node after node cordoning in webhook notification?
3 participants