From 98fa979dc66f22cf440591cc299c5dc788e62bc2 Mon Sep 17 00:00:00 2001 From: "martin.kucin" Date: Tue, 13 Aug 2024 10:26:53 +0200 Subject: [PATCH 1/2] feat(deployment): Add 'imagePullSecrets' to deployment --- charts/k8s-gateway/README.md | 1 + charts/k8s-gateway/templates/deployment.yaml | 4 ++++ charts/k8s-gateway/values.yaml | 1 + 3 files changed, 6 insertions(+) diff --git a/charts/k8s-gateway/README.md b/charts/k8s-gateway/README.md index fcb2419..a242420 100644 --- a/charts/k8s-gateway/README.md +++ b/charts/k8s-gateway/README.md @@ -21,6 +21,7 @@ The following table lists the configurable parameters of the k8s_gateway chart a | `image.repository` | Image repository | `oriedge/k8s_gateway` | | `image.tag` | Image tag | `latest` | | `image.pullPolicy` | Image pull policy | `Always` | +| `image.pullPolicy` | Image registry secret names | `[]` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `tolerations` | Use to schedule on node taint to be not schedulable | `[]` | | `topologySpreadConstraints` | Use topology spread constraints to control how Pods are spread across your cluster | `[]` | diff --git a/charts/k8s-gateway/templates/deployment.yaml b/charts/k8s-gateway/templates/deployment.yaml index 9c6860e..7569146 100644 --- a/charts/k8s-gateway/templates/deployment.yaml +++ b/charts/k8s-gateway/templates/deployment.yaml @@ -23,6 +23,10 @@ spec: checksum/config: {{ toYaml .Values | sha256sum }} spec: serviceAccountName: {{ include "k8s-gateway.serviceAccountName" . }} + {{- with .Values.image.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{- if .Values.image.registry }}{{ .Values.image.registry }}/{{- end }}{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/charts/k8s-gateway/values.yaml b/charts/k8s-gateway/values.yaml index a43482e..c9cbb98 100644 --- a/charts/k8s-gateway/values.yaml +++ b/charts/k8s-gateway/values.yaml @@ -3,6 +3,7 @@ image: repository: oriedge/k8s_gateway tag: v0.4.0 pullPolicy: IfNotPresent + imagePullSecrets: [] # Delegated domain domain: "" From af170002281b2753172b66158527ba45dea2740b Mon Sep 17 00:00:00 2001 From: Mart-Kuc <52672224+Mart-Kuc@users.noreply.github.com> Date: Tue, 13 Aug 2024 10:34:19 +0200 Subject: [PATCH 2/2] Update README.md --- charts/k8s-gateway/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/k8s-gateway/README.md b/charts/k8s-gateway/README.md index a242420..aa38e21 100644 --- a/charts/k8s-gateway/README.md +++ b/charts/k8s-gateway/README.md @@ -21,7 +21,7 @@ The following table lists the configurable parameters of the k8s_gateway chart a | `image.repository` | Image repository | `oriedge/k8s_gateway` | | `image.tag` | Image tag | `latest` | | `image.pullPolicy` | Image pull policy | `Always` | -| `image.pullPolicy` | Image registry secret names | `[]` | +| `image.imagePullSecrets` | Image registry secret names | `[]` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `tolerations` | Use to schedule on node taint to be not schedulable | `[]` | | `topologySpreadConstraints` | Use topology spread constraints to control how Pods are spread across your cluster | `[]` |