Skip to content
ReferenceGitRepository

GitRepository

gitops.nyl/v1

Kubernetes GitOps Resources · Download JSON Schema · Usage guide

Names reusable, credential-free Git read and publication coordinates.

This is shared compiler configuration referenced by Kubernetes GitOps resources; it is not emitted as a workload manifest.

When needed

Required when a publication, remote ApplicationGroup source, or AppProjectDefinition refers to a named GitRepository.

If omitted

Publications and remote sources can use inline repository coordinates instead. Local ApplicationGroup sources need no repository. Named references must resolve to a declared GitRepository; Nyl does not infer one from the current Git remote.

Example

apiVersion: gitops.nyl/v1
kind: GitRepository
metadata:
  name: deploy
spec:
  repoURL: https://github.com/example/deploy.git

Fields

Required means required within the containing object. Optional and nullable are distinct; contextual defaults and requirements are explained with each field.

Unknown fields are rejected.

apiVersion

Required · string

API group and version defining this resource.

const: "gitops.nyl/v1"

kind

Required · string

Resource kind within the API group.

const: "GitRepository"

metadata

Required · object

Resource identity and metadata.

Unknown fields are rejected.

metadata.labels

Optional · object

Literal labels used for organization and target selection.

metadata.labels[key]

Optional · string

metadata.name

Required · string

Project-local identity, validated by the resource kind; remains static during discovery.

spec

Required · object

Configuration for this resource.

Unknown fields are rejected.

spec.publishURL

Optional · string or null

Optional Git write URL. Publication uses repoURL when omitted.

spec.repoURL

Required · string

Credential-free Git read URL used by renderers and generated Applications.