From 9fb1aea066fb83952436ab126403b2608c0bbc81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Capucho?= Date: Thu, 7 Aug 2025 15:19:06 +0100 Subject: [PATCH] chore: Add imagePullSecrets configuration value Allows users to configure `imagePullSecrets` for the cridge deployment allowing the use of private registries. --- helm/cridge/templates/deployment.yaml | 4 ++++ helm/cridge/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/helm/cridge/templates/deployment.yaml b/helm/cridge/templates/deployment.yaml index 0353795..7fef50b 100644 --- a/helm/cridge/templates/deployment.yaml +++ b/helm/cridge/templates/deployment.yaml @@ -22,6 +22,10 @@ spec: org.etsi.osl.service: cridge {{- include "openslice.selectorLabels" . | nindent 8 }} spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - image: "{{ .Values.image.cridge.repository }}:{{ .Values.image.cridge.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.cridge.pullPolicy | default "Always" }} diff --git a/helm/cridge/values.yaml b/helm/cridge/values.yaml index 1d87a53..8f08461 100644 --- a/helm/cridge/values.yaml +++ b/helm/cridge/values.yaml @@ -1,5 +1,8 @@ # Default values for cridge. +# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ +imagePullSecrets: [] + replicaCount: 1 image: -- GitLab