Skip to content

Commit

Permalink
add: subPath
Browse files Browse the repository at this point in the history
  • Loading branch information
mosoriob committed Feb 10, 2025
1 parent 6bcaf9c commit 6016738
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/mint/templates/datacatalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ spec:
{{- end }}
{{- end }}
volumeMounts:
{{ if .Values.components.data_catalog_db.persistence.subPath }}
- mountPath: /var/lib/postgresql/data
name: data-catalog-db
subPath: {{ .Values.components.data_catalog_db.persistence.subPath }}
{{ else }}
- mountPath: /var/lib/postgresql/data
name: data-catalog-db
ports:
Expand Down
6 changes: 6 additions & 0 deletions charts/mint/templates/hasura.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,14 @@ spec:
{{- end }}
{{- end }}
volumeMounts:
{{ if .Values.components.hasura_db.persistence.subPath }}
- mountPath: /var/lib/postgresql/data
name: hasura-db
subPath: {{ .Values.components.hasura_db.persistence.subPath }}
{{ else }}
- mountPath: /var/lib/postgresql/data
name: hasura-db
{{ end }}
env:
- name: POSTGRES_PASSWORD
valueFrom:
Expand Down
6 changes: 6 additions & 0 deletions charts/mint/templates/mic-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,14 @@ spec:
resources:
{{- toYaml .resources | nindent 12 }}
volumeMounts:
{{ if .Values.components.mic_api_db.persistence.subPath }}
- mountPath: /var/lib/postgresql/data
name: mic-api-db
subPath: {{ .Values.components.mic_api_db.persistence.subPath }}
{{ else }}
- mountPath: /var/lib/postgresql/data
name: mic-api-db
{{ end }}
ports:
- name: postgres
containerPort: 5432
Expand Down
5 changes: 5 additions & 0 deletions charts/mint/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ components:
# -- Resource specifications for MIC API database
resources: {}
persistence:
# -- Subpath for MIC API database
subPath: ""
# -- Enable or disable persistence for MIC API database
enabled: true
# -- Storage class for MIC API database
Expand Down Expand Up @@ -175,6 +177,7 @@ components:
dataSource: {}
existingClaim: ""
selector: {}
subPath: ""
annotations:
helm.sh/resource-policy: keep
model_catalog_endpoint:
Expand Down Expand Up @@ -271,6 +274,8 @@ components:
# -- Resource specifications for Hasura database
resources: {}
persistence:
# -- Subpath for Hasura database
subPath: ""
# -- Enable or disable persistence for Hasura database
enabled: true
storageClass: ""
Expand Down

0 comments on commit 6016738

Please # to comment.