Skip to content

Commit

Permalink
consistent prometheus logic key for operator
Browse files Browse the repository at this point in the history
Signed-off-by: hungran <[email protected]>
  • Loading branch information
hungran committed Nov 27, 2023
1 parent a0f2c84 commit a0d4e21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions install/kubernetes/templates/operator_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ spec:
capabilities:
drop:
- "ALL"
{{- if .Values.tetragonOperator.metrics.enabled }}
{{- if .Values.tetragonOperator.prometheus.enabled }}
ports:
- containerPort: {{ .Values.tetragonOperator.metrics.port }}
- containerPort: {{ .Values.tetragonOperator.prometheus.port }}
name: metrics
protocol: TCP
{{- end }}
Expand Down
6 changes: 3 additions & 3 deletions install/kubernetes/templates/operator_service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.tetragonOperator.metrics.enabled -}}
{{- if .Values.tetragonOperator.prometheus.enabled -}}
---
apiVersion: v1
kind: Service
Expand All @@ -10,8 +10,8 @@ metadata:
spec:
ports:
- name: metrics
port: {{ .Values.tetragonOperator.metrics.port }}
targetPort: {{ .Values.tetragonOperator.metrics.port }}
port: {{ .Values.tetragonOperator.prometheus.port }}
targetPort: {{ .Values.tetragonOperator.prometheus.port }}
protocol: TCP
selector:
{{- include "tetragon-operator.selectorLabels" . | nindent 6 }}
Expand Down

0 comments on commit a0d4e21

Please sign in to comment.