Skip to content

Commit

Permalink
fix(helm): fix postgresql values (#19835)
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Texier <benjamin.texier@outlook.com>
  • Loading branch information
benjamin-texier committed Apr 28, 2022
1 parent 1156297 commit f198f9f
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 91 deletions.
2 changes: 1 addition & 1 deletion helm/superset/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ maintainers:
- name: craig-rueda
email: craig@craigrueda.com
url: https://github.com/craig-rueda
version: 0.6.0
version: 0.6.1
dependencies:
- name: postgresql
version: 11.1.22
Expand Down
100 changes: 45 additions & 55 deletions helm/superset/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,73 +413,63 @@
},
"postgresql": {
"type": "object",
"additionalProperties": true,
"properties": {
"enabled": {
"type": "boolean"
},
"existingSecret": {
"type": [
"string",
"null"
]
},
"existingSecretKey": {
"type": [
"string",
"null"
]
},
"service": {
"auth": {
"type": "object",
"additionalProperties": true,
"properties": {
"port": {
"type": "integer"
"database": {
"type": "string"
},
"existingSecret": {
"type": [
"string",
"null"
]
},
"password": {
"type": "string"
},
"username": {
"type": "string"
}
},
"required": [
"port"
]
},
"postgresqlUsername": {
"type": "string"
},
"postgresqlPassword": {
"type": "string"
}
},
"postgresqlDatabase": {
"type": "string"
"enabled": {
"type": "boolean"
},
"persistence": {
"primary": {
"type": "object",
"additionalProperties": true,
"properties": {
"enabled": {
"type": "boolean"
"persistence": {
"type": "object",
"properties": {
"accessModes": {
"type": "array",
"items": {
"type": "string"
}
},
"enabled": {
"type": "boolean"
}
}
},
"accessModes": {
"type": "array",
"items": [
{
"type": "string"
"service": {
"type": "object",
"properties": {
"ports": {
"type": "object",
"properties": {
"postgresql": {
"type": "string"
}
}
}
]
}
}
},
"required": [
"enabled",
"accessModes"
]
}
}
},
"required": [
"enabled",
"service",
"postgresqlUsername",
"postgresqlDatabase",
"persistence"
]
}
},
"redis": {
"type": "object",
Expand Down
67 changes: 32 additions & 35 deletions helm/superset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,42 +370,39 @@ postgresql:
## Use the PostgreSQL chart dependency.
## Set to false if bringing your own PostgreSQL.
enabled: true
##
## The name of an existing secret that contains the postgres password.
existingSecret:
## Name of the key containing the secret.
existingSecretKey: postgresql-password
##
## If you are bringing your own PostgreSQL, you should set postgresHost and
## also probably service.port, postgresqlUsername, postgresqlPassword, and postgresqlDatabase
## postgresHost:
##
## PostgreSQL port
service:
port: 5432
## PostgreSQL User to create.
postgresqlUsername: superset
##
## PostgreSQL Password for the new user.
## If not set, a random 10 characters password will be used.
postgresqlPassword: superset
##
## PostgreSQL Database to create.
postgresqlDatabase: superset
##
## Persistent Volume Storage configuration.
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes
persistence:
##
## Enable PostgreSQL persistence using Persistent Volume Claims.
enabled: true
##
## Persistant class
# storageClass: classname

## Authentication parameters
auth:
## The name of an existing secret that contains the postgres password.
existingSecret:
## PostgreSQL name for a custom user to create
username: superset
## PostgreSQL password for the custom user to create. Ignored if `auth.existingSecret` with key `password` is provided
password: superset
## PostgreSQL name for a custom database to create
database: superset


## PostgreSQL Primary parameters
primary:
##
## Access modes:
accessModes:
- ReadWriteOnce
## Persistent Volume Storage configuration.
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes
persistence:
##
## Enable PostgreSQL persistence using Persistent Volume Claims.
enabled: true
##
## Persistant class
# storageClass: classname
##
## Access modes:
accessModes:
- ReadWriteOnce
## PostgreSQL port
service:
ports:
postgresql: "5432"

## Configuration values for the Redis dependency.
## ref: https://github.com/bitnami/charts/blob/master/bitnami/redis
Expand Down

0 comments on commit f198f9f

Please sign in to comment.