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>
This commit is contained in:
parent
4173dd0813
commit
a68e0f3f6f
@ -1,17 +1,17 @@
|
||||
{{- if .Values.metrics.enabled }}
|
||||
{{- if .Values.apiServerService.enabled }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "freeleaps-secret-operator.fullname" . }}-metrics
|
||||
name: {{ include "freeleaps-secret-operator.fullname" . }}-vault-service
|
||||
labels:
|
||||
{{- include "freeleaps-secret-operator.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.metrics.service.type }}
|
||||
type: {{ .Values.apiServerService.service.type }}
|
||||
ports:
|
||||
- port: {{ .Values.metrics.service.port }}
|
||||
targetPort: metrics
|
||||
- port: {{ .Values.apiServerService.service.port }}
|
||||
targetPort: {{ .Values.operator.apiServerPort }}
|
||||
protocol: TCP
|
||||
name: metrics
|
||||
name: api
|
||||
selector:
|
||||
{{- include "freeleaps-secret-operator.selectorLabels" . | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
@ -104,9 +104,8 @@ hmac:
|
||||
crds:
|
||||
install: false # Set to false if you want to manage CRDs separately
|
||||
|
||||
# Metrics configuration
|
||||
metrics:
|
||||
enabled: false
|
||||
apiServerService:
|
||||
enabled: true
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 8080
|
||||
|
||||
@ -104,9 +104,8 @@ hmac:
|
||||
crds:
|
||||
install: false # Set to false if you want to manage CRDs separately
|
||||
|
||||
# Metrics configuration
|
||||
metrics:
|
||||
enabled: false
|
||||
apiServerService:
|
||||
enabled: true
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 8080
|
||||
|
||||
@ -11,7 +11,7 @@ executeFreeleapsPipeline {
|
||||
commitMessageLintEnabled = false
|
||||
components = [
|
||||
[
|
||||
name: 'secret-operator',
|
||||
name: 'secretOperator',
|
||||
root: 'secretoperator',
|
||||
language: 'python',
|
||||
dependenciesManager: 'pip',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user