Kubernetes GitOpsUsing GitRepository
Using GitRepository
See the GitRepository resource reference for the API, example, and field definitions.
Referencing the repository
Section titled “Referencing the repository”DeploymentTarget.spec.publication.repositoryRef.name identifies a GitRepository
by its metadata.name. This DeploymentTarget publishes to the deploy
repository on the deploy/production revision:
apiVersion: k8s.gitops.nyl/v1kind: DeploymentTargetmetadata: name: productionspec: clusterRef: name: primary argocdRef: name: primary publication: repositoryRef: name: deploy revision: deploy/production pathPrefix: targets/productionThe deploy GitRepository and the primary Cluster and ArgoCDInstance must be
defined in the project.
Both DeploymentTarget publication and ApplicationGroup sources also accept inline
repository.repoURL and repository.publishURL coordinates. A reference and
an inline repository are mutually exclusive.