mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
The Go side was renamed; the UI was not. It still compares resource groups
against 'argoproj.io' and writes argocd.argoproj.io/* annotations, so it and
the API no longer agree on what anything is called.
Worst of these is the finalizer. The controller injects and honors
resources-finalizer.apps.hanzo.ai; the create panel's cascade-delete checkbox
wrote resources-finalizer.argocd.argoproj.io. Ticking the box produced a
finalizer nothing reads — the user is told deletion will cascade, and it does
not. The live Applications already carry the apps.hanzo.ai form; only the UI
disagreed.
The group comparisons fail the same way, quietly: node.group === 'argoproj.io'
guards the ApplicationSet and Application branches in the resource tree,
detail panes, and extension tab lookup, and the backend now sends
apps.hanzo.ai, so those branches stopped being taken.
Values follow whichever constant owns them, rather than a blanket rename:
sync-wave / hook / deletion-approved cd.hanzo.ai/* (gitops-engine sync
vocabulary)
refresh / managed-by-url / link. / apps.hanzo.ai/* (application_annotations
notice. / pref. / group / apiVersion .go, common.go)
Untouched, because they are other people's CRDs and renaming them breaks
icon and subscription lookup for anyone running those products:
promoter.argoproj.io, notifications.argoproj.io.
tsc --noEmit clean; 22 suites / 263 tests / 32 snapshots pass.
Co-authored-by: Hanzo Dev <[email protected]>
Hanzo CD UI
Web UI for Hanzo CD.
Getting started
- Install NodeJS and pnpm. On macOS with Homebrew, running
brew install node pnpmwill accomplish this. - Run
pnpm install --frozen-lockfileto install local prerequisites. - Run
pnpm startto launch the webpack dev UI server. - Run
pnpm buildto bundle static resources into the./distdirectory.
To build a Docker image, run IMAGE_NAMESPACE=yourimagerepo IMAGE_TAG=latest pnpm docker.
To do the same and push to a Docker registry, run IMAGE_NAMESPACE=yourimagerepo IMAGE_TAG=latest DOCKER_PUSH=true pnpm docker.
Pre-commit Checks
Make sure your code passes the lint checks:
pnpm lint --fix
If you are using VSCode, add this configuration to .vscode/settings.json in the root of this repository to identify and fix lint issues automatically before you save file.
Install Eslint Extension in VSCode.
.vscode/settings.json
{
"eslint.format.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
"eslint.workingDirectories": [
{
"directory": "./ui",
"!cwd": false
}
],
"eslint.useFlatConfig": true
}