From f0db3575cfd8a125cdfe21ed3d4865ce2f6b0f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laimis=20Juzeli=C5=ABnas?= Date: Tue, 29 Apr 2025 21:52:26 +0300 Subject: [PATCH 1/2] charts/gitlab-ci-pipelines-exporter: correct secret naming Correct secret naming from -config to -secret. Add trailing slash for GitLab URL in the comment example. Signed-off-by: Laimis Juzeliunas --- charts/gitlab-ci-pipelines-exporter/Chart.yaml | 2 +- charts/gitlab-ci-pipelines-exporter/README.md | 2 +- charts/gitlab-ci-pipelines-exporter/templates/deployment.yaml | 2 +- charts/gitlab-ci-pipelines-exporter/templates/secret.yaml | 2 +- charts/gitlab-ci-pipelines-exporter/values.yaml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/gitlab-ci-pipelines-exporter/Chart.yaml b/charts/gitlab-ci-pipelines-exporter/Chart.yaml index 4f2a0ab..fd6f6d4 100644 --- a/charts/gitlab-ci-pipelines-exporter/Chart.yaml +++ b/charts/gitlab-ci-pipelines-exporter/Chart.yaml @@ -1,7 +1,7 @@ --- apiVersion: v2 name: gitlab-ci-pipelines-exporter -version: 0.3.5 +version: 0.3.6 appVersion: v0.5.10 description: Prometheus / OpenMetrics exporter for GitLab CI pipelines insights home: https://github.com/mvisonneau/gitlab-ci-pipelines-exporter diff --git a/charts/gitlab-ci-pipelines-exporter/README.md b/charts/gitlab-ci-pipelines-exporter/README.md index d34487c..f63074b 100644 --- a/charts/gitlab-ci-pipelines-exporter/README.md +++ b/charts/gitlab-ci-pipelines-exporter/README.md @@ -1,6 +1,6 @@ # gitlab-ci-pipelines-exporter -![Version: 0.3.5](https://img.shields.io/badge/Version-0.3.5-informational?style=flat-square) ![AppVersion: v0.5.10](https://img.shields.io/badge/AppVersion-v0.5.10-informational?style=flat-square) +![Version: 0.3.6](https://img.shields.io/badge/Version-0.3.6-informational?style=flat-square) ![AppVersion: v0.5.10](https://img.shields.io/badge/AppVersion-v0.5.10-informational?style=flat-square) Prometheus / OpenMetrics exporter for GitLab CI pipelines insights diff --git a/charts/gitlab-ci-pipelines-exporter/templates/deployment.yaml b/charts/gitlab-ci-pipelines-exporter/templates/deployment.yaml index b044947..849200b 100644 --- a/charts/gitlab-ci-pipelines-exporter/templates/deployment.yaml +++ b/charts/gitlab-ci-pipelines-exporter/templates/deployment.yaml @@ -70,7 +70,7 @@ spec: {{- end }} envFrom: - secretRef: - name: {{ template "app.fullname" . }}-config + name: {{ template "app.fullname" . }}-secret volumeMounts: - name: config mountPath: /etc/config.yml diff --git a/charts/gitlab-ci-pipelines-exporter/templates/secret.yaml b/charts/gitlab-ci-pipelines-exporter/templates/secret.yaml index 19dc2c2..b8ef96d 100644 --- a/charts/gitlab-ci-pipelines-exporter/templates/secret.yaml +++ b/charts/gitlab-ci-pipelines-exporter/templates/secret.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Secret metadata: - name: {{ template "app.fullname" . }}-config + name: {{ template "app.fullname" . }}-secret labels: {{- include "app.labels" . | nindent 4 }} type: Opaque diff --git a/charts/gitlab-ci-pipelines-exporter/values.yaml b/charts/gitlab-ci-pipelines-exporter/values.yaml index 6b69af8..88fede1 100644 --- a/charts/gitlab-ci-pipelines-exporter/values.yaml +++ b/charts/gitlab-ci-pipelines-exporter/values.yaml @@ -129,7 +129,7 @@ config: # # Complete configuration syntax reference available here: # # https://github.com/mvisonneau/gitlab-ci-pipelines-exporter/blob/master/docs/configuration_syntax.md # gitlab: - # url: https://gitlab.example.com + # url: https://gitlab.example.com/ # token: # enable_health_check: true # enable_tls_verify: true From 8bfe5f2dd1a521714af7a4ba64446dc3a9c7f66a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laimis=20Juzeli=C5=ABnas?= Date: Thu, 1 May 2025 23:42:59 +0300 Subject: [PATCH 2/2] Add Redis resource configuration Adding Redis resource configuration to the chart. --- charts/gitlab-ci-pipelines-exporter/values.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/charts/gitlab-ci-pipelines-exporter/values.yaml b/charts/gitlab-ci-pipelines-exporter/values.yaml index 88fede1..a11e70d 100644 --- a/charts/gitlab-ci-pipelines-exporter/values.yaml +++ b/charts/gitlab-ci-pipelines-exporter/values.yaml @@ -195,6 +195,15 @@ redis: persistence: # redis.master.persistence.enabled -- persist data enabled: false + + # redis.master.resources -- configure redis resources + resources: {} + # requests: + # cpu: 1 + # memory: 256Mi + # limits: + # cpu: 2 + # memory: 512Mi ## Ingress configuration (useful when looking to expose /webhook endpoint externally) ingress: