You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KubeSphere provides Source-to-Image (S2I) and Binary-to-Image (B2I) features to automate image building and pushing and application deployment. In KubeSphere v3.1, you can configure S2I and B2I webhooks so that your Image Builder can be automatically triggered when there is any relevant activity in your code repository.
But it has a drawback, which we cannot trigger the webhook with payload. For example, someone want to automatically trigger the webhook but with different version every time. For example, we could pass the payload into the webhook:
//BuilderName specify the name of s2ibuilder, required
BuilderNamestring`json:"builderName"`
//BackoffLimit limits the restart count of each s2irun. Default is 0
BackoffLimitint32`json:"backoffLimit,omitempty"`
//SecondsAfterFinished if is set and greater than zero, and the job created by s2irun become successful or failed , the job will be auto deleted after SecondsAfterFinished
JohnNiang
changed the title
Request to carry more settings on S2iBuilder into S2i webhook
Request to carry more settings on S2iRun into S2i webhook
Nov 18, 2021
KubeSphere provides Source-to-Image (S2I) and Binary-to-Image (B2I) features to automate image building and pushing and application deployment. In KubeSphere v3.1, you can configure S2I and B2I webhooks so that your Image Builder can be automatically triggered when there is any relevant activity in your code repository.
References:
But it has a drawback, which we cannot trigger the webhook with payload. For example, someone want to automatically trigger the webhook but with different version every time. For example, we could pass the payload into the webhook:
The type of payload could be:
s2ioperator/pkg/apis/devops/v1alpha1/s2irun_types.go
Lines 33 to 46 in 56f9327
And could obtain the payload at here:
s2ioperator/pkg/handler/general/general_webhook.go
Lines 30 to 58 in 56f9327
/kind feature
/cc @kubesphere/sig-devops
The text was updated successfully, but these errors were encountered: