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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user