Fix bootstrapScript in values.yaml of the helm chart (#15297)

This commit is contained in:
Max Voitko 2021-06-27 18:56:23 +03:00 committed by GitHub
parent 73e2c09af0
commit a3d91aee28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 20 deletions

View File

@ -22,7 +22,7 @@ maintainers:
- name: craig-rueda - name: craig-rueda
email: craig@craigrueda.com email: craig@craigrueda.com
url: https://github.com/craig-rueda url: https://github.com/craig-rueda
version: 0.2.0 version: 0.2.1
dependencies: dependencies:
- name: postgresql - name: postgresql
version: 10.2.0 version: 10.2.0

View File

@ -29,10 +29,10 @@ runAsUser: 0
# For production clusters it's recommended to build own image with this step done in CI # For production clusters it's recommended to build own image with this step done in CI
bootstrapScript: | bootstrapScript: |
#!/bin/bash #!/bin/bash
apt-get update -y &&\ rm -rf /var/lib/apt/lists/* && \
apt-get install -y --no-install-recommends nano &&\ pip install \
rm -rf /var/lib/apt/lists/* psycopg2==2.8.5 \
pip install psycopg2==2.8.5 redis==3.2.1 redis==3.2.1 && \
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
## The name of the secret which we will use to generate a superset_config.py file ## The name of the secret which we will use to generate a superset_config.py file
@ -78,10 +78,8 @@ extraConfigs: {}
# sqlalchemy_uri: example://example-db.local # sqlalchemy_uri: example://example-db.local
# tables: [] # tables: []
extraSecrets: {} extraSecrets: {}
# A dictionary of overrides to append at the end of superset_config.py - the name does not matter # A dictionary of overrides to append at the end of superset_config.py - the name does not matter
# WARNING: the order is not guaranteed # WARNING: the order is not guaranteed
configOverrides: {} configOverrides: {}
@ -190,10 +188,8 @@ supersetNode:
- secretRef: - secretRef:
name: '{{ tpl .Values.envFromSecret . }}' name: '{{ tpl .Values.envFromSecret . }}'
command: [ "/bin/sh", "-c", "until nc -zv $DB_HOST $DB_PORT -w1; do echo 'waiting for db'; sleep 1; done" ] command: [ "/bin/sh", "-c", "until nc -zv $DB_HOST $DB_PORT -w1; do echo 'waiting for db'; sleep 1; done" ]
## Annotations to be added to supersetNode deployment ## Annotations to be added to supersetNode deployment
deploymentAnnotations: {} deploymentAnnotations: {}
## Annotations to be added to supersetNode pods ## Annotations to be added to supersetNode pods
podAnnotations: {} podAnnotations: {}
@ -213,10 +209,8 @@ supersetWorker:
- secretRef: - secretRef:
name: '{{ tpl .Values.envFromSecret . }}' name: '{{ tpl .Values.envFromSecret . }}'
command: [ "/bin/sh", "-c", "until nc -zv $DB_HOST $DB_PORT -w1; do echo 'waiting for db'; sleep 1; done" ] command: [ "/bin/sh", "-c", "until nc -zv $DB_HOST $DB_PORT -w1; do echo 'waiting for db'; sleep 1; done" ]
## Annotations to be added to supersetWorker deployment ## Annotations to be added to supersetWorker deployment
deploymentAnnotations: {} deploymentAnnotations: {}
## Annotations to be added to supersetWorker pods ## Annotations to be added to supersetWorker pods
podAnnotations: {} podAnnotations: {}
@ -238,10 +232,8 @@ supersetCeleryBeat:
- secretRef: - secretRef:
name: '{{ tpl .Values.envFromSecret . }}' name: '{{ tpl .Values.envFromSecret . }}'
command: [ "/bin/sh", "-c", "until nc -zv $DB_HOST $DB_PORT -w1; do echo 'waiting for db'; sleep 1; done" ] command: [ "/bin/sh", "-c", "until nc -zv $DB_HOST $DB_PORT -w1; do echo 'waiting for db'; sleep 1; done" ]
## Annotations to be added to supersetCeleryBeat deployment ## Annotations to be added to supersetCeleryBeat deployment
deploymentAnnotations: {} deploymentAnnotations: {}
## Annotations to be added to supersetCeleryBeat pods ## Annotations to be added to supersetCeleryBeat pods
podAnnotations: {} podAnnotations: {}
@ -311,14 +303,11 @@ postgresql:
## Use the PostgreSQL chart dependency. ## Use the PostgreSQL chart dependency.
## Set to false if bringing your own PostgreSQL. ## Set to false if bringing your own PostgreSQL.
enabled: true enabled: true
## ##
## The name of an existing secret that contains the postgres password. ## The name of an existing secret that contains the postgres password.
existingSecret: existingSecret:
## Name of the key containing the secret. ## Name of the key containing the secret.
existingSecretKey: postgresql-password existingSecretKey: postgresql-password
## ##
## If you are bringing your own PostgreSQL, you should set postgresHost and ## If you are bringing your own PostgreSQL, you should set postgresHost and
## also probably service.port, postgresqlUsername, postgresqlPassword, and postgresqlDatabase ## also probably service.port, postgresqlUsername, postgresqlPassword, and postgresqlDatabase
@ -358,16 +347,12 @@ redis:
## Use the redis chart dependency. ## Use the redis chart dependency.
## Set to false if bringing your own redis. ## Set to false if bringing your own redis.
enabled: true enabled: true
usePassword: false usePassword: false
## ##
## The name of an existing secret that contains the redis password. ## The name of an existing secret that contains the redis password.
existingSecret: existingSecret:
## Name of the key containing the secret. ## Name of the key containing the secret.
existingSecretKey: redis-password existingSecretKey: redis-password
## ##
## If you are bringing your own redis, you can set the host in redisHost. ## If you are bringing your own redis, you can set the host in redisHost.
## redisHost: ## redisHost: