Skip to content

Commit

Permalink
Add storageclass config param for zalando dbs (#34)
Browse files Browse the repository at this point in the history
* Add storageclass config param for zalando dbs
  • Loading branch information
teddyphreak authored Jun 19, 2023
1 parent 8a01e73 commit 1bb38c3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
6 changes: 3 additions & 3 deletions charts/dataplane/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ description: A Helm chart to deploy and configure Dataplane
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.9
version: 0.1.10

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: 0.1.9
appVersion: 0.1.10
2 changes: 2 additions & 0 deletions charts/dataplane/templates/postgres/metabase.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $metabaseStorageClass := required "Metabase storage class is required" .Values.zalando.metabase.class }}
---
apiVersion: acid.zalan.do/v1
kind: postgresql
Expand All @@ -7,6 +8,7 @@ spec:
teamId: {{ include "dataplane.zalando.team" . }}
volume:
size: {{ .Values.zalando.metabase.volume }}
storageClass: {{ $metabaseStorageClass }}
numberOfInstances: {{ .Values.zalando.metabase.instances }}
allowedSourceRanges:
{{- with .Values.zalando.metabase.allowedSourceRanges }}
Expand Down
2 changes: 2 additions & 0 deletions charts/dataplane/templates/postgres/warehouse.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $dataplaneStorageClass := required "Dataplane storage class is required" .Values.zalando.metabase.class }}
---
{{- if (gt (int .Values.zalando.warehouse.instances) 0) }}
apiVersion: acid.zalan.do/v1
Expand All @@ -8,6 +9,7 @@ spec:
teamId: {{ include "dataplane.zalando.team" . }}
volume:
size: {{ .Values.zalando.warehouse.volume }}
storageClass: {{ .Values.zalando.metabase.class }}
numberOfInstances: {{ .Values.zalando.warehouse.instances }}
allowedSourceRanges:
{{- with .Values.zalando.warehouse.allowedSourceRanges }}
Expand Down
8 changes: 5 additions & 3 deletions charts/dataplane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ util:
image:
repository: nephelaiio/dataplane-util
pullPolicy: IfNotPresent
tag: dataplane-0.1.9
tag: dataplane-0.1.10
resources: {}

cdc:
Expand Down Expand Up @@ -36,7 +36,7 @@ strimzi:
connect:
image:
repository: nephelaiio/dataplane-connect
tag: dataplane-0.1.9
tag: dataplane-0.1.10
replicas: 1
config:
group.id: connect-cluster
Expand Down Expand Up @@ -64,6 +64,7 @@ zalando:
volume: 10Gi
serviceAnnotations: {}
allowedSourceRanges: 0.0.0.0/0
class: ""

warehouse:
name: warehouse
Expand All @@ -73,6 +74,7 @@ zalando:
volume: 10Gi
serviceAnnotations: {}
allowedSourceRanges: 0.0.0.0/0
class: ""

metabase:
db: dataplane
Expand All @@ -89,7 +91,7 @@ metabase:
image:
repository: nephelaiio/dataplane-util
pullPolicy: IfNotPresent
tag: dataplane-0.1.9
tag: dataplane-0.1.10
securityContext: {}

image:
Expand Down
2 changes: 2 additions & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,12 @@ provisioner:
instances: 1
loadBalancer: true
allowedSourceRanges: 0.0.0.0/0
class: standard
warehouse:
instances: 1
loadBalancer: true
allowedSourceRanges: 0.0.0.0/0
class: standard

verifier:
name: ansible
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dataplane"
version = "0.1.9"
version = "0.1.10"
description = ""
authors = ["Teodoro Cook <[email protected]>"]

Expand Down

0 comments on commit 1bb38c3

Please sign in to comment.