Skip to content

Commit

Permalink
fix: 🎨 variabilize postgres clusters pvc size
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudTA committed Oct 3, 2023
1 parent de961c7 commit 2b6f461
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/keycloak/templates/pg-cluster-keycloak.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ spec:

# Require 1Gi of space per instance using default storage class
storage:
size: 1Gi
size: {{ dsc.keycloak.postgresPvcSize }}
2 changes: 2 additions & 0 deletions roles/socle-config/files/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ spec:
keycloak:
namespace: dso-keycloak
subDomain: keycloak
postgresPvcSize: 1Gi
sonarqube:
namespace: dso-sonarqube
subDomain: sonar
postgresPvcSize: 5Gi
vault:
namespace: dso-vault
subDomain: vault
Expand Down
6 changes: 6 additions & 0 deletions roles/socle-config/files/crd-conf-dso.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ spec:
chartVersion:
description: Keycloak chart version (e.g., "16.0.3").
type: string
postgresPvcSize:
description: Size for postgres' pvc
type: string
values:
description: |
You can merge customs values for keycloak, they will be merged with roles/keycloak/templates/values.j2
Expand Down Expand Up @@ -443,6 +446,9 @@ spec:
chartVersion:
description: SonarQube Bitnami helm chart version (e.g., "3.2.10").
type: string
postgresPvcSize:
description: Size for postgres' pvc
type: string
values:
description: |
You can merge customs values for sonarqube, it will be merged with roles/sonarqube/tasks/main.yaml
Expand Down
2 changes: 1 addition & 1 deletion roles/sonarqube/templates/pg-cluster-sonar.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ spec:

# Require 1Gi of space per instance using default storage class
storage:
size: 5Gi
size: {{ dsc.sonarqube.postgresPvcSize }}

0 comments on commit 2b6f461

Please sign in to comment.