mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 15:10:15 +08:00
[bitnami/gitlab-runner] feat: add support for custom image_pull_secrets (#35057)
This commit is contained in:
committed by
GitHub
parent
5e81d2a7c6
commit
9bd3b6dd43
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
*/}}
|
||||
|
||||
@@ -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)
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user