diff --git a/CHANGELOG.md b/CHANGELOG.md index 864f4cc..309054f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.1 (2026-01-22) + +* PR #XX: Add support for extra volumes and volume mounts in the deployment (@sveriger) + ## 1.1.0 (2025-09-29) * PR #211: Add support for using existing PriorityClass (@dibaro) diff --git a/imgproxy/Chart.yaml b/imgproxy/Chart.yaml index ef81577..42fae65 100644 --- a/imgproxy/Chart.yaml +++ b/imgproxy/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 description: A fast and secure standalone server for resizing and converting remote images. The main principles of imgproxy are simplicity, speed, and security. name: imgproxy icon: https://cdn.rawgit.com/imgproxy/imgproxy/master/logo.svg -version: 1.1.0 +version: 1.1.1 appVersion: 3.30.0 keywords: - imgproxy diff --git a/imgproxy/templates/deployment.yaml b/imgproxy/templates/deployment.yaml index 557ebb6..7c5dac3 100644 --- a/imgproxy/templates/deployment.yaml +++ b/imgproxy/templates/deployment.yaml @@ -74,11 +74,16 @@ spec: {{- else if (include "serviceAccount.enabled" $ | eq "true") }} serviceAccountName: "{{ template "imgproxy.fullname" $ }}-service-account" {{- end }} - {{- if .Values.persistence.enabled }} + {{- if or .Values.persistence.enabled .Values.resources.extraVolumes }} volumes: + {{- if .Values.persistence.enabled }} - name: data persistentVolumeClaim: claimName: {{ include "imgproxy.pvcName" . }} + {{- end }} + {{- with .Values.resources.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }} {{- with .Values.resources.deployment.topologySpreadConstraints }} topologySpreadConstraints: @@ -106,13 +111,18 @@ spec: name: {{ $secretName }} {{- end }} resources: {{ include "imgproxy.podResources" $ | nindent 12 }} - {{- if .Values.persistence.enabled }} + {{- if or .Values.persistence.enabled .Values.resources.extraVolumeMounts }} volumeMounts: + {{- if .Values.persistence.enabled }} - name: data mountPath: {{ .Values.persistence.mountPath }} {{- if .Values.persistence.subPath }} subPath: {{ .Values.persistence.subPath }} {{- end }} + {{- end }} + {{- with .Values.resources.extraVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- end }} ports: - containerPort: 8080 diff --git a/imgproxy/values.yaml b/imgproxy/values.yaml index 6011897..4dbe8e0 100644 --- a/imgproxy/values.yaml +++ b/imgproxy/values.yaml @@ -24,12 +24,12 @@ resources: priority: # The name of the priority class to be used in both pod.PriorityClassName # and the PriorityClass (when a level is above 0). - # + # # Usage scenarios: # 1. level > 0: A new PriorityClass will be created with this name and assigned to pods # 2. level = 0 + name provided: Use an existing PriorityClass with this name (no new PriorityClass created) # 3. level = 0 + no name: No PriorityClass will be used - # + # # You can use system names like `set-cluster-critical` and `set-node-critical` as well, # in this case the class won't be created and level is ignored. name: ~ @@ -78,7 +78,7 @@ resources: # The number of seconds for which past recommendations # should be considered while scaling up or scaling down (0 - 3600). - # This is used as the default for both directions unless overridden by + # This is used as the default for both directions unless overridden by # scaleUpBehavior.stabilizationInterval or scaleDownBehavior.stabilizationInterval. # # The setting is used if `minCount < maxCount` only (default 300 seconds). @@ -109,7 +109,7 @@ resources: # All fields are optional - you can override only specific settings. scaleDownBehavior: # stepCount: 1 # Number of pods to remove per scaling step (overrides shared stepCount) - # stepSeconds: 300 # Period between scaling steps in seconds (overrides shared stepSeconds) + # stepSeconds: 300 # Period between scaling steps in seconds (overrides shared stepSeconds) # stabilizationInterval: 600 # Stabilization window in seconds (overrides shared stabilizationInterval) # selectPolicy: Min # Policy for selecting which recommendation to use (Min, Max, Disabled) @@ -183,7 +183,7 @@ resources: {} # allowPrivilegeEscalation: false # runAsNonRoot: true - + # A container security context defines privilege and access control settings for the deployment container. # Check available settings in the documentation by link: # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ @@ -294,6 +294,25 @@ resources: annotations: {} labels: {} +# Additional pod volumes to mount (beyond the persistence volume). +# Each entry should be a valid Kubernetes volume spec. +# Example: +# resources: +# extraVolumes: +# - name: config +# configMap: +# name: my-config +extraVolumes: [] + +# Additional volume mounts for the imgproxy container. +# Each entry should be a valid Kubernetes volumeMount spec. +# Example: +# resources: +# extraVolumeMounts: +# - name: config +# mountPath: /config +extraVolumeMounts: [] + # Configure persistence layer persistence: # If persistence is enabled