Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added check for persistence: enabled #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/ocsinventory/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
{{- if .Values.persistence.enabled }}
- mountPath: /etc/ocsinventory-server
name: {{ template "ocsinventory.fullname" . }}-data
subPath: perlcomdata
Expand All @@ -70,6 +71,7 @@ spec:
- mountPath: /etc/apache2/conf-available
name: {{ template "ocsinventory.fullname" . }}-data
subPath: httpdconfdata
{{- end }}
- mountPath: /etc/php/8.1/apache2/conf.d/ocsinventory.ini
name: {{ template "ocsinventory.fullname" . }}-config
subPath: phpconfig
Expand All @@ -86,13 +88,15 @@ spec:

{{- end }}
volumes:
{{- if .Values.persistence.enabled }}
- name: {{ template "ocsinventory.fullname" . }}-data
persistentVolumeClaim:
{{- if .Values.persistence.existingClaim }}
claimName: {{ .Values.persistence.existingClaim }}
{{- else }}
claimName: {{ template "ocsinventory.fullname" . }}-data
{{- end }}
{{- end }}
- name: {{ template "ocsinventory.fullname" . }}-config
configMap:
name: {{ template "ocsinventory.fullname" . }}-config
Expand Down