mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 09:36:17 +08:00
4be0cba9b5
#### PR Dependency Tree * **PR #14779** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Added conditional init checks to service deployments and jobs to wait for the database proxy before starting * Exposed a new health port (9801) for the database proxy to enable readiness probing * **Tests** * Minor test reordering and formatting changes (no behavioral changes) <!-- end of auto-generated comment: release notes by coderabbit.ai -->
22 lines
535 B
YAML
22 lines
535 B
YAML
{{- if .Values.enabled -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "gcloud-sql-proxy.fullname" . }}
|
|
labels:
|
|
{{- include "gcloud-sql-proxy.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.global.database.port }}
|
|
targetPort: cloud-sql-proxy
|
|
protocol: TCP
|
|
name: cloud-sql-proxy
|
|
- port: 9801
|
|
targetPort: 9801
|
|
protocol: TCP
|
|
name: health
|
|
selector:
|
|
{{- include "gcloud-sql-proxy.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|