Skip to main content

GitRepository

API Group: sources.blanketops.dev

Version: v1alpha1

Scope: Namespaced


Description

GitRepository defines a governed source origin for delivery.

It establishes provider configuration, webhook scope, and repository identity.


Spec

FieldTypeRequiredDescription
providerstringYesSource control provider (e.g. github)
repository.ownerstringYesRepository owner
repository.namestringYesRepository name
webhookslistYesAllowed webhook event configurations
credentialsSecretstringNoSecret for repository authentication

spec.contract.webhooks[]

FieldTypeRequiredDescription
eventsstring[]YesAllowed event types (e.g. push, pull_request)

Status

FieldTypeDescription
readybooleanWhether the repository is registered and reachable
reasonstringHuman-readable detail, populated on error
lastUpdatedAtstringTimestamp when status was last updated

Example

apiVersion: sources.blanketops.dev/v1
kind: GitRepository
metadata:
name: for-kaniko-app
namespace: dev
spec:
contract:
provider: github
repository:
owner: example-org
name: for-kaniko-app
webhooks:
- events:
- push
- pull_request