Skip to content

Commit

Permalink
Merge "Update chart to support the deployment without persistent data…
Browse files Browse the repository at this point in the history
…base"
  • Loading branch information
jonrzhang authored and Gerrit Code Review committed May 28, 2024
2 parents 1abc5e8 + 6be44fb commit face7de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ spec:
volumeMounts:
- name: scripts
mountPath: /opt
{{- if .Values.db.persistence }}
- name: db-pv
mountPath: /var/lib/postgresql/data
{{- end }}
- name: redis
image: "{{ .Values.o2ims.images.tags.redis }}"
ports:
Expand Down Expand Up @@ -230,9 +232,11 @@ spec:
- configMap:
name: {{ .Chart.Name }}-smocacrt
name: smocacrt
{{- if .Values.db.persistence }}
- name: db-pv
persistentVolumeClaim:
claimName: {{ .Chart.Name }}-db-pv
{{- end }}
{{- if default false .Values.o2ims.useHostCert }}
- name: ca-certs
hostPath:
Expand Down
1 change: 1 addition & 0 deletions charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ global:
namespace: oran-o2

db:
persistence: true
storageSize: 10Gi

# ImagePullSecrets for operator ServiceAccount, list of secrets in the same
Expand Down

0 comments on commit face7de

Please sign in to comment.