Fix gitea-http Service targetPort (chart renders null)

The chart leaves the http Service targetPort null (defaults to the port name,
which kustomize drops), failing strict kubeconform. Pin it to 3000 via a
kustomize patch.

Claude-Session: https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv
This commit is contained in:
2026-07-29 22:06:59 +10:00
parent e8d46d08f2
commit 2c43e57ed2
@@ -27,3 +27,14 @@ patches:
kind: Pod
metadata:
name: gitea-test-connection
# The chart renders the http Service with `targetPort: null` (it defaults the
# target to the port name, which kustomize drops); pin it to 3000 so the
# manifest is valid and the HTTPRoute backend resolves.
- target:
version: v1
kind: Service
name: gitea-http
patch: |-
- op: replace
path: /spec/ports/0/targetPort
value: 3000