From 571e6448c90c869493a76711ac56b1b8b092a59d Mon Sep 17 00:00:00 2001 From: Nick Palmer Date: Tue, 30 Jul 2024 16:44:00 -0500 Subject: [PATCH 1/2] Allow setting portName --- charts/gitlab-ci-pipelines-exporter/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/gitlab-ci-pipelines-exporter/templates/deployment.yaml b/charts/gitlab-ci-pipelines-exporter/templates/deployment.yaml index b044947..60a6bea 100644 --- a/charts/gitlab-ci-pipelines-exporter/templates/deployment.yaml +++ b/charts/gitlab-ci-pipelines-exporter/templates/deployment.yaml @@ -76,7 +76,7 @@ spec: mountPath: /etc/config.yml subPath: config.yml ports: - - name: exporter + - name: {{- .Values.portName }} containerPort: 8080 protocol: TCP {{- with .Values.livenessProbe }} From 8e5a8b82c5ac5a4e128ed73f31cf3f922e8bb311 Mon Sep 17 00:00:00 2001 From: Nick Palmer Date: Tue, 30 Jul 2024 16:47:26 -0500 Subject: [PATCH 2/2] Set default portName value --- charts/gitlab-ci-pipelines-exporter/values.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/gitlab-ci-pipelines-exporter/values.yaml b/charts/gitlab-ci-pipelines-exporter/values.yaml index 6b69af8..4d12b5c 100644 --- a/charts/gitlab-ci-pipelines-exporter/values.yaml +++ b/charts/gitlab-ci-pipelines-exporter/values.yaml @@ -44,6 +44,8 @@ podLabels: {} # podAnnotations -- additional annotations for the pods podAnnotations: {} +portName: "exporter" + service: # type -- service type type: ClusterIP