[bitnami/gitlab-runner] feat: add support for custom image_pull_secrets (#35057)

This commit is contained in:
Juan Ariza Toledano
2025-07-15 12:05:42 +02:00
committed by GitHub
parent 5e81d2a7c6
commit 9bd3b6dd43
4 changed files with 35 additions and 3 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 1.1.1 (2025-07-14)
## 1.1.2 (2025-07-15)
* [bitnami/gitlab-runner] :zap: :arrow_up: Update dependency references ([#35044](https://github.com/bitnami/charts/pull/35044))
* [bitnami/gitlab-runner] feat: add support for custom image_pull_secrets ([#35057](https://github.com/bitnami/charts/pull/35057))
## <small>1.1.1 (2025-07-14)</small>
* [bitnami/gitlab-runner] :zap: :arrow_up: Update dependency references (#35044) ([aefd1d3](https://github.com/bitnami/charts/commit/aefd1d325ab30175d292ef24b86b04715a6fab28)), closes [#35044](https://github.com/bitnami/charts/issues/35044)
## 1.1.0 (2025-07-14)

View File

@@ -32,4 +32,4 @@ maintainers:
name: gitlab-runner
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/gitlab-runner
version: 1.1.1
version: 1.1.2

View File

@@ -44,6 +44,33 @@ Return the proper Docker Image Registry Secret Names
{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.image .Values.helperImage) "context" .) -}}
{{- end -}}
{{/*
Return the proper Docker Image Registry Secret Names as a raw comma-separated string
*/}}
{{- define "gitlab-runner.imagePullSecretsRaw" -}}
{{- $context := . }}
{{- $pullSecrets := list }}
{{- range ((.Values.global).imagePullSecrets) -}}
{{- if kindIs "map" . -}}
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" $context) | quote) -}}
{{- else -}}
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" $context) | quote) -}}
{{- end -}}
{{- end -}}
{{- range (list .Values.image .Values.helperImage) -}}
{{- range .pullSecrets -}}
{{- if kindIs "map" . -}}
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" $context) | quote) -}}
{{- else -}}
{{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" $context) | quote) -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- if (not (empty $pullSecrets)) -}}
{{- $pullSecrets | join ", " -}}
{{- end -}}
{{- end -}}
{{/*
Name of the Runner Secret
*/}}

View File

@@ -601,6 +601,7 @@ runners:
namespace = "{{ include "common.names.namespace" . }}"
image = "{{ include "gitlab-runner.image" . }}"
helper_image = "{{ include "gitlab-runner.helper.image" . }}"
image_pull_secrets = [{{ include "gitlab-runner.imagePullSecretsRaw" . }}]
## @param runners.configPath Absolute path for an existing runner configuration file (to be used with volumes/extraVolumes)
##