Skip to content

Commit

Permalink
Merge pull request #253 from bci-oss/bugfix/fix-helm-pvc-name
Browse files Browse the repository at this point in the history
Fix helm- pvc name
  • Loading branch information
tunacicek authored Mar 7, 2024
2 parents 40ab0e4 + 785516d commit d792818
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/semantic-hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sources:
- https://github.com/eclipse-tractusx/sldt-semantic-hub

type: application
version: 0.2.1-RC2
version: 0.2.1-RC3
appVersion: 0.3.1-RC1
dependencies:
- repository: https://charts.bitnami.com/bitnami
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
###############################################################

{{- if and (.Values.graphdb.enabled) (not .Values.hub.embeddedTripleStore) }}
{{- $pvc_name := printf "cx-%s-graphdb-pvc" .Release.Name }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -63,5 +64,5 @@ spec:
volumes:
- name: graphdbdata
persistentVolumeClaim:
claimName: {{ include "hub.fullname" .}}-graphdb
claimName: {{ $pvc_name }}
{{- end -}}
3 changes: 2 additions & 1 deletion charts/semantic-hub/templates/graphdb/graphdb-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
###############################################################

{{- if and (.Values.graphdb.enabled) (not .Values.hub.embeddedTripleStore) }}
{{- $pvc_name := printf "cx-%s-graphdb-pvc" .Release.Name }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "hub.fullname" .}}-graphdb
name: {{ $pvc_name }}
spec:
storageClassName: {{ .Values.graphdb.storageClassName }}
accessModes:
Expand Down

0 comments on commit d792818

Please sign in to comment.