mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
The fork was already ours everywhere that matters — our image, our IAM (dex is not deployed), hanzo kv behind what the env still called REDIS. Only the vocabulary was upstream's: ARGOCD_* across the Go, the manifests, the docs and the plugin contract, and mkdocs still titled 'Argo CD' pointing at argoproj/argo-cd. ARGOCD_ -> CD_ and REDIS_ -> KV_ across 345 files, plus the 8 e2e/cmp fixtures that assert the plugin env contract — those had to move with the binary, which now emits CD_APP_NAME where they expected ARGOCD_APP_NAME. Left alone deliberately, because renaming them would be wrong: - util/helm/testdata/redis/ and gitops-engine/.../statefulset*.yaml are fixtures for a THIRD-PARTY chart named redis, not our config - util/kustomize/testdata/ likewise - generated.proto regenerates from types.go, which is already clean go build ./... exit 0. LOCKSTEP: the live StatefulSet sets 47 ARGOCD_* names the binary no longer reads. universe 4a5375735 carries the matching manifest change; they deploy together or the controller falls back to defaults. Co-authored-by: Hanzo Dev <[email protected]>
31 lines
901 B
Bash
Executable File
31 lines
901 B
Bash
Executable File
#!/bin/sh
|
|
|
|
BASEPATH=$(dirname "$0")
|
|
PERMFILE=${BASEPATH}/argocd-remote-permissions.yaml
|
|
if ! test -f "${PERMFILE}"; then
|
|
echo "ERROR: $PERMFILE does not exist." >&2
|
|
exit 1
|
|
fi
|
|
|
|
NAMESPACE=${NAMESPACE:-argocd-e2e}
|
|
|
|
if test "${CD_E2E_NAME_PREFIX}" != ""; then
|
|
CRNAME="${CD_E2E_NAME_PREFIX}-argocd-application-controller"
|
|
CRBNAME="${CD_E2E_NAME_PREFIX}-argocd-application-controller"
|
|
CONTROLLERSANAME="${CD_E2E_NAME_PREFIX}-argocd-application-controller"
|
|
SERVERSANAME="${CD_E2E_NAME_PREFIX}-argocd-server"
|
|
else
|
|
CRNAME="argocd-application-controller"
|
|
CRBNAME="argocd-application-controller"
|
|
CONTROLLERSANAME="argocd-application-controller"
|
|
SERVERSANAME="argocd-server"
|
|
fi
|
|
|
|
sed \
|
|
-e "s/##CRNAME##/${CRNAME}/g" \
|
|
-e "s/##CRBNAME##/${CRBNAME}/g" \
|
|
-e "s/##CONTROLLERSANAME##/${CONTROLLERSANAME}/g" \
|
|
-e "s/##SERVERSANAME##/${SERVERSANAME}/g" \
|
|
-e "s/##NAMESPACE##/${NAMESPACE}/g" \
|
|
"$PERMFILE"
|