forked from vikunja/helm-chart
Compare commits
3 Commits
419c58c6f1
...
b74bbc6029
Author | SHA1 | Date | |
---|---|---|---|
b74bbc6029 | |||
33551427d8 | |||
|
5d4142c5bd |
|
@ -10,7 +10,7 @@ description: |-
|
||||||
the high alpine areas of the Andes and a relative of the llama.
|
the high alpine areas of the Andes and a relative of the llama.
|
||||||
annotations:
|
annotations:
|
||||||
category: TaskTracker
|
category: TaskTracker
|
||||||
version: 0.2.1
|
version: 0.3.0
|
||||||
appVersion: 0.21.0
|
appVersion: 0.21.0
|
||||||
kubeVersion: ">= 1.19"
|
kubeVersion: ">= 1.19"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
17
README.md
17
README.md
|
@ -114,7 +114,22 @@ raw:
|
||||||
|
|
||||||
Enjoy!
|
Enjoy!
|
||||||
|
|
||||||
## Contributing
|
### Use an existing file volume claim
|
||||||
|
|
||||||
|
In the `values.yaml` file, you can configure wether to create the Persistent Volume Claim or use an existing one:
|
||||||
|
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Specifies whether a PVC should be created
|
||||||
|
create: true
|
||||||
|
# The name of the PVC to use.
|
||||||
|
# If not set and create is true, a name is generated using the fullname template
|
||||||
|
name: ""
|
||||||
|
```
|
||||||
|
|
||||||
|
This is helpful when migrating from a different k8s chart and want to re-use the existing volume or if you need more control over how the volume is created.
|
||||||
|
|
||||||
|
## Publishing
|
||||||
|
|
||||||
1. Pull all dependencies before packaging.
|
1. Pull all dependencies before packaging.
|
||||||
|
|
||||||
|
|
|
@ -93,3 +93,10 @@ Frontend fullname
|
||||||
{{- define "vikunja.frontendFullname" -}}
|
{{- define "vikunja.frontendFullname" -}}
|
||||||
{{- include "vikunja.fullname" . | printf "%s-frontend" | trunc 63 | trimSuffix "-" }}
|
{{- include "vikunja.fullname" . | printf "%s-frontend" | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the PVC to use
|
||||||
|
*/}}
|
||||||
|
{{- define "vikunja.pvcName" -}}
|
||||||
|
{{- default (include "vikunja.fullname" .) .Values.api.persistence.name }}
|
||||||
|
{{- end }}
|
|
@ -107,7 +107,7 @@ spec:
|
||||||
{{- if .Values.api.persistence.enabled }}
|
{{- if .Values.api.persistence.enabled }}
|
||||||
- name: storage
|
- name: storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ include "vikunja.apiFullname" . }}
|
claimName: {{ include "vikunja.pvcName" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.api.extraVolumes }}
|
{{- with .Values.api.extraVolumes }}
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{{- if .Values.api.persistence.enabled }}
|
{{- if and .Values.api.persistence.enabled .Values.api.persistence.create }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "vikunja.apiFullname" . }}
|
name: {{ include "vikunja.pvcName" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "vikunja.labels" . | nindent 4 }}
|
{{- include "vikunja.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
|
|
@ -174,6 +174,11 @@ api:
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
# Specifies whether a PVC should be created
|
||||||
|
create: true
|
||||||
|
# The name of the PVC to use.
|
||||||
|
# If not set and create is true, a name is generated using the fullname template
|
||||||
|
name: ""
|
||||||
spec: {}
|
spec: {}
|
||||||
# accessModes: ["ReadWriteOnce"]
|
# accessModes: ["ReadWriteOnce"]
|
||||||
# resources:
|
# resources:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user