feat(helm): use an existing PVC as config volume (#2447)
This commit is contained in:
@@ -3,7 +3,7 @@ kubeVersion: '>=1.23.0-0'
|
|||||||
name: seerr-chart
|
name: seerr-chart
|
||||||
description: Seerr helm chart for Kubernetes
|
description: Seerr helm chart for Kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: 3.0.2
|
version: 3.1.0
|
||||||
# renovate: image=ghcr.io/seerr-team/seerr
|
# renovate: image=ghcr.io/seerr-team/seerr
|
||||||
appVersion: 'v3.0.1'
|
appVersion: 'v3.0.1'
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# seerr-chart
|
# seerr-chart
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
Seerr helm chart for Kubernetes
|
Seerr helm chart for Kubernetes
|
||||||
|
|
||||||
@@ -44,9 +44,10 @@ If `replicaCount` value was used - remove it. Helm update should work fine after
|
|||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| affinity | object | `{}` | |
|
| affinity | object | `{}` | |
|
||||||
| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration |
|
| config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"existingClaim":"","name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration |
|
||||||
| config.persistence.accessModes | list | `["ReadWriteOnce"]` | Access modes of persistent disk |
|
| config.persistence.accessModes | list | `["ReadWriteOnce"]` | Access modes of persistent disk |
|
||||||
| config.persistence.annotations | object | `{}` | Annotations for PVCs |
|
| config.persistence.annotations | object | `{}` | Annotations for PVCs |
|
||||||
|
| config.persistence.existingClaim | string | `""` | Specify an existing `PersistentVolumeClaim` to use. If this value is provided, the default PVC will not be created |
|
||||||
| config.persistence.name | string | `""` | Config name |
|
| config.persistence.name | string | `""` | Config name |
|
||||||
| config.persistence.size | string | `"5Gi"` | Size of persistent disk |
|
| config.persistence.size | string | `"5Gi"` | Size of persistent disk |
|
||||||
| config.persistence.volumeName | string | `""` | Name of the permanent volume to reference in the claim. Can be used to bind to existing volumes. |
|
| config.persistence.volumeName | string | `""` | Name of the permanent volume to reference in the claim. Can be used to bind to existing volumes. |
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if not .Values.config.persistence.existingClaim -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
@@ -22,3 +23,4 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: "{{ .Values.config.persistence.size }}"
|
storage: "{{ .Values.config.persistence.size }}"
|
||||||
|
{{- end -}}
|
||||||
@@ -103,7 +103,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ include "seerr.configPersistenceName" . }}
|
claimName: {{ if .Values.config.persistence.existingClaim }}{{ .Values.config.persistence.existingClaim }}{{- else }}{{ include "seerr.configPersistenceName" . }}{{- end }}
|
||||||
{{- with .Values.volumes }}
|
{{- with .Values.volumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -86,6 +86,8 @@ config:
|
|||||||
# -- Name of the permanent volume to reference in the claim.
|
# -- Name of the permanent volume to reference in the claim.
|
||||||
# Can be used to bind to existing volumes.
|
# Can be used to bind to existing volumes.
|
||||||
volumeName: ''
|
volumeName: ''
|
||||||
|
# -- Specify an existing `PersistentVolumeClaim` to use. If this value is provided, the default PVC will not be created
|
||||||
|
existingClaim: ''
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
Reference in New Issue
Block a user