fix(promoter): correct Forgejo registry service hostname
CI / CI (pull_request) Successful in 2m17s

forgejo-gitea-http.cicd.svc.cluster.local (headless svc, port 3000)
not forgejo-gitea (doesn't exist). Also wire REGISTRY_BASE env var
in deployment.yaml so it can be overridden without code change.
This commit is contained in:
Admin Bot
2026-09-28 12:27:09 +08:00
parent 23fff1006a
commit cc1aeb2d26
3 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ const (
argoNamespace = "argocd" argoNamespace = "argocd"
saTokenPath = "/var/run/secrets/kubernetes.io/serviceaccount/token" saTokenPath = "/var/run/secrets/kubernetes.io/serviceaccount/token"
saCACertPath = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" saCACertPath = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
defaultRegBase = "http://forgejo-gitea.cicd.svc.cluster.local:3000" defaultRegBase = "http://forgejo-gitea-http.cicd.svc.cluster.local:3000"
defaultRegUser = "rock" defaultRegUser = "rock"
promoterTimeout = 20 * time.Second promoterTimeout = 20 * time.Second
) )
+2
View File
@@ -101,6 +101,8 @@ spec:
name: forgejo-registry-pat name: forgejo-registry-pat
key: pat key: pat
optional: true optional: true
- name: REGISTRY_BASE
value: "http://forgejo-gitea-http.cicd.svc.cluster.local:3000"
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /etc/gateway mountPath: /etc/gateway
+9 -4
View File
@@ -158,11 +158,16 @@ spec:
ports: ports:
- protocol: TCP - protocol: TCP
port: 3000 port: 3000
# Allow to kubernetes API server (ArgoCD Application patching via in-cluster SA) # Allow to kubernetes API server (ArgoCD Application patching via in-cluster SA).
# kube-apiserver runs on host network (192.168.1.162/166:6443) — must use ipBlock.
# ClusterIP 10.96.0.1:443 also routes there, covered by the 10.96.0.0/12 CIDR.
- to: - to:
- namespaceSelector: - ipBlock:
matchLabels: cidr: 10.96.0.0/12
kubernetes.io/metadata.name: default - ipBlock:
cidr: 192.168.1.0/24
ports: ports:
- protocol: TCP - protocol: TCP
port: 443 port: 443
- protocol: TCP
port: 6443