Skip to content

Commit

Permalink
feat(postgresql) update postresql formula to estimate the volume of p…
Browse files Browse the repository at this point in the history
…ersistence
  • Loading branch information
sjflausino committed Mar 1, 2024
1 parent 3b718ec commit d2eaad2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions vkpr/postgresql/install/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"inputs": [
{
"tutorial": "Specifies if the application will have High Availability",
"label": "Persistance ? (default is 8Gi)",
"name": "PERSISTANCE",
"type": "text",
"default": "8Gi"
},
{
"tutorial": "Specifies if the application will have High Availability",
"label": "HA ?",
Expand Down
2 changes: 1 addition & 1 deletion vkpr/postgresql/install/src/unix/formula/formula.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ formulaInputs() {
checkGlobalConfig "$HA" "false" "postgresql.HA" "POSTGRESQL_HA"
checkGlobalConfig "false" "false" "postgresql.metrics" "POSTGRESQL_METRICS"
checkGlobalConfig "$VKPR_ENV_GLOBAL_NAMESPACE" "$VKPR_ENV_GLOBAL_NAMESPACE" "postgresql.namespace" "POSTGRESQL_NAMESPACE"
checkGlobalConfig "8Gi" "8Gi" "postgresql.persistanceSize" "POSTGRESQL_VOLUME_SIZE"
checkGlobalConfig "$PERSISTANCE" "8Gi" "postgresql.persistanceSize" "POSTGRESQL_VOLUME_SIZE"

# External apps values
checkGlobalConfig "$VKPR_ENV_GLOBAL_NAMESPACE" "$VKPR_ENV_GLOBAL_NAMESPACE" "prometheus-stack.namespace" "GRAFANA_NAMESPACE"
Expand Down

0 comments on commit d2eaad2

Please sign in to comment.