From bcd2641f35283d0f10840f3f5af65eed9c17297d Mon Sep 17 00:00:00 2001 From: Cole Arendt Date: Sun, 11 Aug 2024 08:58:44 -0400 Subject: [PATCH] add imagePullSecrets configuration --- charts/traefik-forward-auth/Chart.yaml | 2 +- charts/traefik-forward-auth/NEWS.md | 4 ++++ charts/traefik-forward-auth/README.md | 7 ++++--- charts/traefik-forward-auth/templates/pod.yaml | 4 ++++ charts/traefik-forward-auth/values.yaml | 2 ++ 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/charts/traefik-forward-auth/Chart.yaml b/charts/traefik-forward-auth/Chart.yaml index 5a53ba2..22ce71f 100644 --- a/charts/traefik-forward-auth/Chart.yaml +++ b/charts/traefik-forward-auth/Chart.yaml @@ -1,6 +1,6 @@ name: traefik-forward-auth description: Deploy traefik-forward-auth -version: 0.0.14 +version: 0.0.15 apiVersion: v1 sources: - https://github.com/thomseddon/traefik-forward-auth diff --git a/charts/traefik-forward-auth/NEWS.md b/charts/traefik-forward-auth/NEWS.md index e993826..7ac2e06 100644 --- a/charts/traefik-forward-auth/NEWS.md +++ b/charts/traefik-forward-auth/NEWS.md @@ -1,3 +1,7 @@ +# 0.0.15 + +- Add imagePullSecrets configuration + # 0.0.14 - Set serviceAccountName on deployment diff --git a/charts/traefik-forward-auth/README.md b/charts/traefik-forward-auth/README.md index c904ff7..33548c3 100644 --- a/charts/traefik-forward-auth/README.md +++ b/charts/traefik-forward-auth/README.md @@ -1,14 +1,14 @@ # traefik-forward-auth -![Version: 0.0.14](https://img.shields.io/badge/Version-0.0.14-informational?style=flat-square) +![Version: 0.0.15](https://img.shields.io/badge/Version-0.0.15-informational?style=flat-square) ## Installing the Chart -To install the chart with the release name `my-release` at version 0.0.14: +To install the chart with the release name `my-release` at version 0.0.15: ```bash helm repo add colearendt https://colearendt.github.io/helm -helm install my-release colearendt/traefik-forward-auth --version=0.0.14 +helm install my-release colearendt/traefik-forward-auth --version=0.0.15 ``` #### _Deploy traefik-forward-auth_ @@ -28,6 +28,7 @@ helm install my-release colearendt/traefik-forward-auth --version=0.0.14 | image.pullPolicy | string | `"IfNotPresent"` | | | image.repository | string | `"thomseddon/traefik-forward-auth"` | | | image.tag | int | `2` | | +| imagePullSecrets | list | `[]` | | | ingress.annotations | object | `{}` | | | ingress.className | string | `""` | | | ingress.enabled | bool | `false` | | diff --git a/charts/traefik-forward-auth/templates/pod.yaml b/charts/traefik-forward-auth/templates/pod.yaml index ba44d67..1d21526 100644 --- a/charts/traefik-forward-auth/templates/pod.yaml +++ b/charts/traefik-forward-auth/templates/pod.yaml @@ -22,6 +22,10 @@ spec: app: {{ .Release.Name }} spec: serviceAccountName: {{ include "traefik-forward-auth.serviceAccountName" . }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: proxy image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/charts/traefik-forward-auth/values.yaml b/charts/traefik-forward-auth/values.yaml index 2aa23d8..638fedd 100644 --- a/charts/traefik-forward-auth/values.yaml +++ b/charts/traefik-forward-auth/values.yaml @@ -14,6 +14,8 @@ service: nameOverride: "" fullnameOverride: "" +imagePullSecrets: [] + image: repository: thomseddon/traefik-forward-auth tag: 2