apis: add WebHook action and job lifecycle events#183
apis: add WebHook action and job lifecycle events#183chuqing1997 wants to merge 1 commit intovolcano-sh:masterfrom
Conversation
|
Welcome @chuqing1997! |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/assign @william-wang |
|
I want to implement the functionality mentioned in the issue of volcano sh/volcano # 4342. Because the Volcano repository relies on the apis repository, I made modifications to the apis first. This is my PR. Please review it. |
5d87302 to
f129152
Compare
Add support for WebHook action in LifecyclePolicy to enable HTTP callbacks when job state changes. This includes: - New Events: JobTerminated, JobCompleted, JobAborted, JobFailed - New Action: WebHook with configurable URL, method, headers, body and timeout - WebHookConfig struct for webhook configuration - Fix build constraint syntax in hack/tools.go for Go compatibility This enables users to configure webhook notifications for job completion states through the existing Policies mechanism. Signed-off-by: chuqing1997 <[email protected]>
f129152 to
4513285
Compare
You can replace your go.mod like |
|
@chuqing1997: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Add support for WebHook action in LifecyclePolicy to enable HTTP callbacks when job state changes. This includes:
This enables users to configure webhook notifications for job completion states through the existing Policies mechanism.