mirror of
https://github.com/hanzoai/cd.git
synced 2026-10-30 14:56:45 +00:00
Rename test names, comments, fixture data, and mock GitHub/webhook responses that still said Argo/ArgoCD/argocd/argoproj in our own voice, matching the hanzocd-* binary/configmap names and the apps.hanzo.ai CRD/annotation domain already established elsewhere in the fork. Also drop the dated argov1alpha1/argoprojiov1alpha1 import aliases for our own v1alpha1 API package. Restore the CRD groups a prior blind rename had mangled on a vendored third-party Argo Workflows example manifest back to the real argoproj.io, and fix several places where an earlier half-finished rename had gone silently wrong instead of just being cosmetic: stale CD_BINARY_NAME values and a stale --argocd-repo-server flag no longer recognized by the binary, cert filenames and an ssh_known_hosts alias that didn't match what's actually on disk, a namespace and a kustomize image substitution that were silent no-ops, and a test assertion regex that could never match its own fixture. External lookup keys we don't control are left byte-exact: quay.io/argoprojlabs images, the docker.io/argoproj CI builder image, live argoproj/argo-workflows release URLs, the generated ArgoprojV1alpha1() clientset method, and the Makefile-coupled /tmp/argo-e2e and GOPATH mount conventions.
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
# This example demonstrates the git directory generator, which produces an items list
|
||
# based on discovery of directories in a git repo matching a specified pattern.
|
||
# Git generators automatically provide {{path}} and {{path.basename}} as available
|
||
# variables to the app template.
|
||
#
|
||
# Suppose the following git directory structure (note the use of different config tools):
|
||
#
|
||
# cluster-deployments
|
||
# └── add-ons
|
||
# ├── cert-manager
|
||
# │ ├── all.yaml
|
||
# │ └── kustomization.yaml
|
||
# ├── cd-workflows
|
||
# │ └── install.yaml
|
||
# ├── grafana
|
||
# │ ├── Chart.yaml
|
||
# │ └── values.yaml
|
||
# └── prometheus-operator
|
||
# ├── Chart.yaml
|
||
# └── values.yaml
|
||
#
|
||
# The following ApplicationSet would produce four applications (in different namespaces),
|
||
# using the directory basename as both the namespace and application name.
|
||
apiVersion: apps.hanzo.ai/v1alpha1
|
||
kind: ApplicationSet
|
||
metadata:
|
||
name: cluster-addons
|
||
spec:
|
||
goTemplate: true
|
||
goTemplateOptions: ["missingkey=error"]
|
||
generators:
|
||
- git:
|
||
repoURL: https://github.com/infra-team/cluster-deployments.git
|
||
directories:
|
||
- path: add-ons/*
|
||
template:
|
||
metadata:
|
||
name: '{{.path.basename}}'
|
||
spec:
|
||
source:
|
||
repoURL: https://github.com/infra-team/cluster-deployments.git
|
||
targetRevision: HEAD
|
||
path: '{{.path.path}}'
|
||
destination:
|
||
server: http://kubernetes.default.svc
|
||
namespace: '{{.path.basename}}'
|