mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
Two corrections on top of the naming pass, both found by checking the live cluster rather than the source. The rename had silently changed the user-facing annotation key from argocd.argoproj.io/sync-wave to cd.argoproj.io/sync-wave — 63 live Applications carry the old key, so deploying that would have ignored every sync-wave and broken fleet deploy ordering. The key is now cd.hanzo.ai/*, and universe 575650286 moves the ApplicationSet template that stamps it, so the controller regenerates all 63 consistently. The API group in code said argoproj.io/v1alpha1 in 157 places while the cluster has served apps.hanzo.ai/v1alpha1 since 2026-07-23 (the CRDs are applications.apps.hanzo.ai). Code now matches what is actually served. The legacy applications.argoproj.io/app-name label had ZERO live users, so it went with the rest. foo.argoproj.io test fixtures became foo.example.com — arbitrary test domains should not carry a vendor name. go build ./... exit 0. Co-authored-by: Hanzo Dev <[email protected]>
55 lines
1.9 KiB
YAML
55 lines
1.9 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: cd-repo-server
|
|
spec:
|
|
template:
|
|
spec:
|
|
initContainers:
|
|
- name: helm-plugin-setup
|
|
image: busybox
|
|
command:
|
|
- sh
|
|
- -c
|
|
- |
|
|
wget https://get.helm.sh/helm-v3.10.3-linux-amd64.tar.gz -O - | tar xz && mv linux-amd64/helm /tools/helm && chmod +x /tools/helm
|
|
wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O /tools/jq && chmod +x /tools/jq
|
|
wget https://github.com/mikefarah/yq/releases/download/v4.30.6/yq_linux_amd64 -O /tools/yq && chmod +x /tools/yq
|
|
volumeMounts:
|
|
- mountPath: /tools
|
|
name: helm-plugin-tools
|
|
containers:
|
|
- name: helm-plugin
|
|
command: [/var/run/cd/cd-cmp-server]
|
|
args: [--loglevel, debug]
|
|
image: busybox
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 999
|
|
volumeMounts:
|
|
- mountPath: /var/run/cd
|
|
name: var-files
|
|
- mountPath: /home/cd/cmp-server/plugins
|
|
name: plugins
|
|
- mountPath: /helm-working-dir
|
|
name: helm-plugin-tmp
|
|
- mountPath: /home/cd/cmp-server/config/plugin.yaml
|
|
subPath: plugin.yaml
|
|
name: helm-plugin-config
|
|
- mountPath: /var/run/cd/helm-plugin/generate.sh
|
|
subPath: generate.sh
|
|
name: helm-plugin-config
|
|
- mountPath: /var/run/cd/helm-plugin/get-parameters.sh
|
|
subPath: get-parameters.sh
|
|
name: helm-plugin-config
|
|
- mountPath: /usr/local/bin
|
|
name: helm-plugin-tools
|
|
volumes:
|
|
- configMap:
|
|
name: helm-plugin-config
|
|
name: helm-plugin-config
|
|
- emptyDir: {}
|
|
name: helm-plugin-tmp
|
|
- emptyDir: {}
|
|
name: helm-plugin-tools
|