-
Notifications
You must be signed in to change notification settings - Fork 271
Unable to get pod names in webhook notification. #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Let me check and get back to you on this. |
This PR #411 undo some of the changes which is why you are not able to see any Pods anymore. I will get it fixed. |
I am still not able to get pods list in the webhook notification. This is tested against main branch. Logs -
Though evicting pods with pod-name message is present in NTH logs but webhook notification contains an empty list. |
The problem is that we are only adding pods when cordonOnly is enabled. We should be adding it when for the default Cordon and Drain too. I'll work on making this fix. |
@imuqtadir should it works with v.1.13.1? Still have an empty list there. |
As per the PR #388, we should be able to get the Pod names by including the following in the webhook template:
Pods: {{ .Pods }}
. However, it returns an empty arrayPods: []
.Slack notification:
This is tested on tag:
v1.13.0
Helm values used:
The text was updated successfully, but these errors were encountered: