weebo-forgejo

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:
    - push

Spec fields

FieldTypeRequiredDefaultDescription
activebooleannotrue
authorizationHeaderSecretRefobjectnoValue sent as the Authorization header (write-only as well). The Secret must carry the label forgejo.weebo.io/credential: "true".
branchFilterstringnoGlob limiting push/branch events, e.g. main or {main,release/*}.
contentTypestringno"json"json (default) or form.
deletionPolicystringno"Delete"What happens to the Forgejo object when its CR is deleted.
eventsstring[]no["push"]Trigger events (push, pull_request, issues, release, create, delete, ...).
extraConfigobjectnoType-specific settings (e.g. username/channel for Slack).
httpMethodstringno
instanceRefobjectnoThe ForgejoInstance or ForgejoLocalInstance this object lives on. Unset: the cluster's only ForgejoInstance, else the only ForgejoLocalInstance of this namespace.
organizationRefobjectnoA 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.
repositoryRefobjectnoReference 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.
secretRefobjectnoHMAC 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".
typestringno"forgejo"forgejo (default), gitea, gogs, slack, discord, dingtalk, telegram, msteams, feishu, wechatwork or packagist. Changing it recreates the hook.
urlstringyesPayload 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...