diff --git a/install/kubernetes/templates/operator_deployment.yaml b/install/kubernetes/templates/operator_deployment.yaml index 54b5450e493..ba32df88d5e 100644 --- a/install/kubernetes/templates/operator_deployment.yaml +++ b/install/kubernetes/templates/operator_deployment.yaml @@ -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 }} diff --git a/install/kubernetes/templates/operator_service.yaml b/install/kubernetes/templates/operator_service.yaml index da058a7aee3..dfa445e6d58 100644 --- a/install/kubernetes/templates/operator_service.yaml +++ b/install/kubernetes/templates/operator_service.yaml @@ -1,4 +1,4 @@ -{{- if .Values.tetragonOperator.metrics.enabled -}} +{{- if .Values.tetragonOperator.prometheus.enabled -}} --- apiVersion: v1 kind: Service @@ -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 }}