-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add PVC and volume mount for plugins directory (#108)
* add PVC and volume mount for plugins directory * chart version bump * Bump chart version
- Loading branch information
1 parent
f0a7186
commit ea3beef
Showing
4 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{- if and .Values.persistence.plugins.enabled (not .Values.persistence.plugins.existingClaim) -}} | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: {{ include "mattermost-team-edition.fullname" . }}-plugins | ||
labels: | ||
app.kubernetes.io/name: {{ include "mattermost-team-edition.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
helm.sh/chart: {{ include "mattermost-team-edition.chart" . }} | ||
annotations: | ||
{{- range $key, $value := .Values.persistence.plugins.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
spec: | ||
accessModes: | ||
- {{ .Values.persistence.plugins.accessMode | quote }} | ||
resources: | ||
requests: | ||
storage: {{ .Values.persistence.plugins.size | quote }} | ||
{{- if .Values.persistence.plugins.storageClass }} | ||
{{- if (eq "-" .Values.persistence.plugins.storageClass) }} | ||
storageClassName: "" | ||
{{- else }} | ||
storageClassName: "{{ .Values.persistence.plugins.storageClass }}" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters