freeleaps-ops/freeleaps-secret-operator/helm-pkg/secret-operator/templates/service.yaml
zhenyus a68e0f3f6f feat: enable apiServerService in Helm values and update service template
- Added `apiServerService` configuration to `values.prod.yaml` and `values.yaml`, enabling the service.
- Updated the service template to use the new `apiServerService` configuration instead of the deprecated `metrics` configuration.

Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-18 12:16:59 +08:00

18 lines
548 B
YAML

{{- if .Values.apiServerService.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "freeleaps-secret-operator.fullname" . }}-vault-service
labels:
{{- include "freeleaps-secret-operator.labels" . | nindent 4 }}
spec:
type: {{ .Values.apiServerService.service.type }}
ports:
- port: {{ .Values.apiServerService.service.port }}
targetPort: {{ .Values.operator.apiServerPort }}
protocol: TCP
name: api
selector:
{{- include "freeleaps-secret-operator.selectorLabels" . | nindent 4 }}
{{- end }}