Skip to content

Commit

Permalink
Add storageclassname to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
zamog committed Dec 15, 2024
1 parent e3b1859 commit 30e9c4e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
5 changes: 4 additions & 1 deletion charts/airbyte/templates/airbyte-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,8 @@ spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 500Mi
storage: {{ .Values.postgresql.storage.volumeClaimValue }}
{{- with .Values.postgresql.storage.storageClassName }}
storageClassName: {{ . }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/airbyte/templates/minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
resources:
requests:
storage: {{ .Values.minio.storage.volumeClaimValue }}
{{- with .Values.minio.storage.storageClassName }}
storageClassName: {{ . }}
{{- end }}
template:
metadata:
labels:
Expand Down
4 changes: 4 additions & 0 deletions charts/airbyte/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1705,6 +1705,9 @@ postgresql:
# -- Affinity and anti-affinity for postgresql pod assignment, see
# https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
affinity: {}
storage:
volumeClaimValue: 500Mi
storageClassName: ""

# External PostgreSQL configuration, All of these values are only used when postgresql.enabled is set to false
externalDatabase:
Expand Down Expand Up @@ -1738,6 +1741,7 @@ minio:

storage:
volumeClaimValue: 500Mi
storageClassName: ""

# -- Node labels for pod assignment, see https://kubernetes.io/docs/user-guide/node-selection/
##
Expand Down
5 changes: 4 additions & 1 deletion charts/v2/airbyte/templates/airbyte-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,8 @@ spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 500Mi
storage: {{ .Values.postgresql.storage.volumeClaimValue }}
{{- with .Values.postgresql.storage.storageClassName }}
storageClassName: {{ . }}
{{- end }}
{{- end }}
5 changes: 4 additions & 1 deletion charts/v2/airbyte/templates/minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: {{ .Values.minio.storage.volumeClaimValue }}
storage: {{ .Values.minio.storage.volumeClaimValue }}
{{- with .Values.minio.storage.storageClassName }}
storageClassName: {{ . }}
{{- end }}
template:
metadata:
labels:
Expand Down
4 changes: 4 additions & 0 deletions charts/v2/airbyte/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2024,6 +2024,9 @@ postgresql:
# -- Affinity and anti-affinity for postgresql pod assignment, see
# https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
affinity: {}
storage:
volumeClaimValue: 500Mi
storageClassName: ""

minio:
secretName: ""
Expand All @@ -2043,6 +2046,7 @@ minio:

storage:
volumeClaimValue: 500Mi
storageClassName: ""

# -- Node labels for pod assignment, see https://kubernetes.io/docs/user-guide/node-selection/
##
Expand Down

0 comments on commit 30e9c4e

Please sign in to comment.