chore: make DOC_SERVICE_ENDPOINT dynamic computed (#10029)

This commit is contained in:
Brooooooklyn
2025-02-08 05:27:56 +00:00
parent e5d1cd9ea2
commit 18513c6e55
8 changed files with 9 additions and 10 deletions

View File

@@ -56,8 +56,8 @@ Create the name of the service account to use
*/}}
{{- define "doc.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "doc.fullname" .) .Values.serviceAccount.name }}
{{- default (include "doc.fullname" .) .Values.global.docService.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- default "default" .Values.global.docService.name }}
{{- end }}
{{- end }}

View File

@@ -11,7 +11,7 @@ metadata:
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
- port: {{ .Values.global.docService.port }}
targetPort: http
protocol: TCP
name: http

View File

@@ -11,5 +11,5 @@ spec:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "doc.fullname" . }}:{{ .Values.service.port }}']
args: ['{{ include "doc.fullname" . }}:{{ .Values.global.docService.port }}']
restartPolicy: Never

View File

@@ -18,7 +18,6 @@ app:
serviceAccount:
create: true
annotations: {}
name: 'affine-doc'
podAnnotations: {}