Skip to content

Commit

Permalink
[fnndsc/pfcon] rename global.storageClass to global.defaultStorageClass
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Dec 16, 2024
1 parent 8191fd8 commit 2077a75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/pfcon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sources:
- https://github.com/FNNDSC/pfcon

type: application
version: "1.0.0-alpha.1"
version: "1.0.0-alpha.2"
appVersion: "5.2.3"

maintainers:
Expand Down
7 changes: 3 additions & 4 deletions charts/pfcon/templates/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ metadata:
labels:
{{- include "pfcon.labels" . | nindent 4 }}
spec:
{{- if .Values.storage.storageClass }}
storageClassName: {{ .Values.storage.storageClass }}
{{- else if .Values.global.storageClass }}
storageClassName: {{ .Values.global.storageClass }}
{{- $storageClass := .Values.storage.storageClass | default .Values.global.defaultStorageClass }}
{{- with .Values.storage.storageClass | default .Values.global.defaultStorageClass }}
storageClassName: {{ . }}
{{- end }}
accessModes:
{{- toYaml .Values.storage.accessModes | nindent 4 }}
Expand Down
8 changes: 4 additions & 4 deletions charts/pfcon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ serviceAccount:
name: ""

global:
# -- storage class to use for persistent volume claims
storageClass: ""
# -- Global default StorageClass for Persistent Volume(s)
defaultStorageClass: ""

# -- optional security context to apply to all pods
podSecurityContext: {}
Expand All @@ -35,9 +35,9 @@ service:

storage:
existingClaim: ""
size: 100Gi
size: 8Gi
accessModes: [ "ReadWriteOnce" ]
# storageClass:
storageClass: ""

nodeSelector: {}

Expand Down

0 comments on commit 2077a75

Please sign in to comment.