docs: incorrect psycopg2 package in k8s install instructions (#31999)

This commit is contained in:
Benjami 2025-02-04 12:33:43 +02:00 committed by GitHub
parent 8984f88a3e
commit 9aa8b09505
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

View File

@ -150,6 +150,9 @@ Superset requires a Python DB-API database driver and a SQLAlchemy
dialect to be installed for each datastore you want to connect to. dialect to be installed for each datastore you want to connect to.
See [Install Database Drivers](/docs/configuration/databases) for more information. See [Install Database Drivers](/docs/configuration/databases) for more information.
It is recommended that you refer to versions listed in
[pyproject.toml](https://github.com/apache/superset/blob/master/pyproject.toml)
instead of hard-coding them in your bootstrap script, as seen below.
::: :::
@ -157,9 +160,9 @@ The following example installs the drivers for BigQuery and Elasticsearch, allow
```yaml ```yaml
bootstrapScript: | bootstrapScript: |
#!/bin/bash #!/bin/bash
pip install psycopg2==2.9.6 \ pip install .[postgres] \
sqlalchemy-bigquery==1.6.1 \ .[bigquery] \
elasticsearch-dbapi==0.2.5 &&\ .[elasticsearch] &&\
if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ .Values.runAsUser }}" > ~/bootstrap; fi if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ .Values.runAsUser }}" > ~/bootstrap; fi
``` ```