From 28295ef0059bb5d4c295b84d77d4090723b3378c Mon Sep 17 00:00:00 2001 From: Jacob McSwain Date: Sat, 10 Feb 2024 15:37:44 -0600 Subject: [PATCH] feat: chart: allow specifying imagePullSecrets --- charts/palworld/Chart.yaml | 2 +- charts/palworld/templates/deployments.yaml | 4 ++++ charts/palworld/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/palworld/Chart.yaml b/charts/palworld/Chart.yaml index 4bac46cd0..e5a8be602 100644 --- a/charts/palworld/Chart.yaml +++ b/charts/palworld/Chart.yaml @@ -1,7 +1,7 @@ --- apiVersion: v2 name: palworld -version: 0.1.0 +version: 0.1.1 description: This chart will provide a Palworld server installation on a kubernetes cluster type: application keywords: diff --git a/charts/palworld/templates/deployments.yaml b/charts/palworld/templates/deployments.yaml index 0759d98bd..677db619e 100644 --- a/charts/palworld/templates/deployments.yaml +++ b/charts/palworld/templates/deployments.yaml @@ -67,6 +67,10 @@ spec: volumeMounts: - mountPath: /palworld name: datadir + {{- with .Values.server.image.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} volumes: - name: datadir persistentVolumeClaim: diff --git a/charts/palworld/values.yaml b/charts/palworld/values.yaml index 3f734a012..8a3e0ebe1 100644 --- a/charts/palworld/values.yaml +++ b/charts/palworld/values.yaml @@ -37,6 +37,8 @@ server: tag: latest # -- Define the pull policy for the server image. imagePullPolicy: IfNotPresent + # -- Define the pull secrets for the server image. + imagePullSecrets: [] # -- (dict) Change the ports to be mapped to the pod. # If you change those, make sure to change the service.ports and server.config accordingly.