ForgejoWebhook
A webhook on a ForgejoRepository (same namespace) or a ForgejoOrganization — exactly one of the two refs.
- API version:
forgejo.weebo.io/v1alpha1 - Scope: Namespaced
- Short names:
fjhook - Guide: Repositories
A webhook on a ForgejoRepository (same namespace) or a
ForgejoOrganization — exactly one of the two refs.
Example
apiVersion: forgejo.weebo.io/v1alpha1
kind: ForgejoWebhook
metadata:
name: my-webhook
namespace: team-a
spec:
repositoryRef:
name: app
url: https://ci.example.com/hooks/forgejo
events:
- pushSpec fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
active | boolean | no | true | |
authorizationHeaderSecretRef | object | no | Value sent as the Authorization header (write-only as well). The Secret must carry the label forgejo.weebo.io/credential: "true". | |
branchFilter | string | no | Glob limiting push/branch events, e.g. main or {main,release/*}. | |
contentType | string | no | "json" | json (default) or form. |
deletionPolicy | string | no | "Delete" | What happens to the Forgejo object when its CR is deleted. |
events | string[] | no | ["push"] | Trigger events (push, pull_request, issues, release, create, delete, ...). |
extraConfig | object | no | Type-specific settings (e.g. username/channel for Slack). | |
httpMethod | string | no | ||
instanceRef | object | no | The ForgejoInstance or ForgejoLocalInstance this object lives on. Unset: the cluster's only ForgejoInstance, else the only ForgejoLocalInstance of this namespace. | |
organizationRef | object | no | A user, organization or team: a CR (name) — of this object's namespace, or of namespace when cross-namespace references are enabled for the operator and the target lists this namespace in its sharedWith — or an object that exists in Forgejo but no CR manages (remoteName, its Forgejo name). The operator never creates, changes nor deletes a remoteName object. | |
repositoryRef | object | no | Reference to another CR of this operator, by metadata.name. Always a CR, never a raw remote name: a cluster-scoped target is looked up cluster-wide, a namespaced one in the referencing CR's own namespace only. | |
secretRef | object | no | HMAC secret signing the payloads. Write-only in Forgejo: a change of the Secret's value is detected through status.appliedSecretHash. The Secret must carry the label forgejo.weebo.io/credential: "true". | |
type | string | no | "forgejo" | forgejo (default), gitea, gogs, slack, discord, dingtalk, telegram, msteams, feishu, wechatwork or packagist. Changing it recreates the hook. |
url | string | yes | Payload URL. |
Build a manifest
Answer the questions and fill in the fields: the YAML preview updates as you type, ready to copy or download and kubectl apply.
Loading form...