From f45030877e7030c6e4be2b01b9d49bb6d0ae47ca Mon Sep 17 00:00:00 2001 From: Thomas Ehling <30614868+ThomasEhling@users.noreply.github.com> Date: Mon, 15 Aug 2022 10:56:23 -0400 Subject: [PATCH] add conditional to metrics port (#323) * add conditional to metrics port * Update pomerium version to 32.0.4 * update version to 32.0.5 Co-authored-by: Caleb Doxsey --- charts/pomerium/Chart.yaml | 2 +- charts/pomerium/templates/proxy-service.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/pomerium/Chart.yaml b/charts/pomerium/Chart.yaml index e969863..23c28cd 100644 --- a/charts/pomerium/Chart.yaml +++ b/charts/pomerium/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: pomerium -version: 32.0.4 +version: 32.0.5 appVersion: v0.18.0 home: http://www.pomerium.com/ icon: https://www.pomerium.com/img/icon.svg diff --git a/charts/pomerium/templates/proxy-service.yaml b/charts/pomerium/templates/proxy-service.yaml index 7993610..9562241 100644 --- a/charts/pomerium/templates/proxy-service.yaml +++ b/charts/pomerium/templates/proxy-service.yaml @@ -49,10 +49,12 @@ spec: protocol: TCP port: 80 {{- end }} +{{- if .Values.metrics.enabled }} - name: metrics port: {{ .Values.metrics.port }} protocol: TCP targetPort: metrics +{{- end }} selector: app.kubernetes.io/name: {{ template "pomerium.proxy.name" . }} app.kubernetes.io/instance: {{ .Release.Name }}