Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve helm chart #9346

Merged
merged 137 commits into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
83b67f8
improve helm chart
fbalicchia Mar 22, 2020
d791822
add Apache license headers
fbalicchia Mar 22, 2020
5e6662a
fix: suburst chart when secondary metric is defined (#9343)
villebro Mar 22, 2020
f4087d2
refactor: remove settooltip (#9332)
kristw Mar 23, 2020
5d98575
[config] Fixing GET_FEATURE_FLAGS_FUNC example (#9339)
john-bodley Mar 23, 2020
866f6f9
feat: [SQLLAB] add checkbox to control autocomplete (#9338)
nytai Mar 24, 2020
20dd418
Cal heatmap controls migration (#9355)
rusackas Mar 24, 2020
b5a9bae
migrating unique EventFlow controls (#9358)
rusackas Mar 24, 2020
3d738ee
Treemap controls migration (#9352)
rusackas Mar 24, 2020
98a71be
feat: [explore] don't save filters inherited from a dashboard (#9340)
mistercrunch Mar 24, 2020
f51ab59
[charts] Refactor API using SIP-35 (#9329)
dpgaspar Mar 24, 2020
46e39d1
Add global install of webpack and webpack-cli to docker-compose (#9310)
Mar 24, 2020
ccb22dc
[dataset] columns and metrics API (nested) (#9268)
dpgaspar Mar 24, 2020
06e0f04
Adding requirements-local.txt support (#9357)
craig-rueda Mar 24, 2020
fe53555
Migrate unique Heatmap controls (#9360)
villebro Mar 24, 2020
634b440
fix: don't parseFloat when the *already numeric* value ends in a deci…
rusackas Mar 24, 2020
43f0221
[sip-15] Fixing typo in docstring (#9377)
john-bodley Mar 25, 2020
6b0f62a
[explore view] fix long query issue from Run in SQL LAB Button (#9345)
Mar 25, 2020
4fd5ac9
fix a typo in set prop value (#9383)
Mar 25, 2020
0061a3e
Migrating unique DirectedForce controls (#9359)
rusackas Mar 26, 2020
9eb5bad
Update MANIFEST.in (#9261)
Mar 26, 2020
f5cc0ef
fix: [dashboard] add row padding (#9381)
nytai Mar 26, 2020
d5e2f7e
Removing WordCloud controls from CONTRIBUTING.md (#9391)
rusackas Mar 26, 2020
5b07c8d
[dashboard] handle markdown error (#9350)
Mar 26, 2020
19da904
[cache] Cleaning up viz/cache logic (#9375)
john-bodley Mar 26, 2020
bf0fa84
migrating controls 🎛 (#9386)
rusackas Mar 26, 2020
7e86e38
Migrating unique Table controls (#9388)
rusackas Mar 26, 2020
ccff6be
Migrating unique BoxPlot controls (#9392)
rusackas Mar 26, 2020
cfa7868
upgrade to react-bootstrap v0.33.1 (#9372)
suddjian Mar 26, 2020
b12188e
migrating unique controls (#9374)
rusackas Mar 26, 2020
9fcdc93
Migrating horizon controls (#9368)
rusackas Mar 26, 2020
77fcc4b
build: use manifest hooks for dev server proxy and fix hot reload fo…
ktmud Mar 26, 2020
98a26c4
migrating controls (#9373)
rusackas Mar 27, 2020
40bc1b3
[dataset] New, export API endpoint (#9367)
dpgaspar Mar 27, 2020
8197196
[charts] New, bulk delete API endpoint (#9387)
dpgaspar Mar 27, 2020
742887b
[sip-15] fix messaging (#9397)
john-bodley Mar 27, 2020
fd22788
Mirgrating unique Partition chart controls (#9385)
rusackas Mar 27, 2020
499f9c8
feat: add SSL certificate validation for Druid (#9396)
villebro Mar 27, 2020
e63cb52
[fix] Fixing cache key inconsistencies (#9382)
john-bodley Mar 28, 2020
30403be
add initjob conf + secret
fbalicchia Mar 29, 2020
2e81e27
[dependency] Fix, Bump FAB to 2.3.1 (#9413)
dpgaspar Mar 29, 2020
ec795a4
[mypy] Enforcing typing for charts (#9411)
john-bodley Mar 29, 2020
e946697
add missing headers
fbalicchia Mar 30, 2020
752de8f
[dashboards] Fix, API update slug uniqueness refusing empty string (#…
dpgaspar Mar 30, 2020
3d8a2b8
Build: fix hot reload for charts (#9400)
ktmud Mar 30, 2020
ce3031b
[fix] allow force refresh for No Results chart (#9408)
Mar 30, 2020
a9ff51b
[fix] dashboard filter indicator no showing single number value (#9401)
Mar 30, 2020
893c955
fix pagination for list views (#9425)
nytai Apr 1, 2020
f0f4f7e
feat(visualization): add timeRangeFixed to Big Number w/ Trendlines (…
ktmud Apr 1, 2020
621b481
[fix]some translation not work better (#9428)
venter-zhu Apr 2, 2020
e33f6c2
Add check for SSL certificate and add form validators (#9436)
villebro Apr 2, 2020
c003189
migrating unique controls (#9446)
rusackas Apr 2, 2020
c53bc4d
Enforcing linting of LESS (#9356)
rusackas Apr 2, 2020
9e79cf3
Migrating unique bigNumber(total) controls (#9440)
rusackas Apr 2, 2020
cd57233
Migrating unique NVD3 viz controls (#9445)
rusackas Apr 3, 2020
265a2fe
Migrating NVD3 Area's stacked_style config (#9454)
rusackas Apr 3, 2020
1cdfb82
Eslint prefer-object-spread (#9466)
rusackas Apr 4, 2020
5e55e09
[mypy] Enforcing typing for some modules (#9416)
john-bodley Apr 4, 2020
801e2f1
chore: bump black to 19.10b0 and mypy to 0.770 (#9378)
ktmud Apr 4, 2020
8dd92f7
release: Add support for ZSH in RELEASING and add tagging instruction…
villebro Apr 6, 2020
25e38f6
Added dremio (#9472)
narendrans Apr 6, 2020
c0807c1
[query] New, readonly API (#9403)
dpgaspar Apr 6, 2020
dcb7b83
[mypy] Enforcing typing for superset.examples (#9469)
john-bodley Apr 6, 2020
b6bca9f
Migrating shared DeckGL controls (#9455)
rusackas Apr 7, 2020
b487834
[Doc] Update installation doc for Dremio (#9464)
narendrans Apr 7, 2020
f9db3fa
[mypy] Enforcing typing for superset.dashboards (#9418)
dpgaspar Apr 7, 2020
4be8275
[datasets] Add strict type annotation (#9437)
dpgaspar Apr 7, 2020
5e53506
Filter owners select by text input (#9337)
suddjian Apr 7, 2020
a52b9ee
Handle empty dataframes in TableViz (#9480)
elukey Apr 7, 2020
72f051f
[sqllab] Add CUSTOM_TEMPLATE_PROCESSOR config (#9376)
dandanhub Apr 7, 2020
4485800
[tests] refactor, change datasets and charts to it's own folder (#9487)
dpgaspar Apr 8, 2020
980dd2f
pylint: accept specific 2 character names by default (#9460)
villebro Apr 8, 2020
fd85696
Upgrade table chart plugin to 0.12.13 (#9493)
ktmud Apr 9, 2020
36cd541
feat: change default time range in sql lab explore (#9486)
ktmud Apr 9, 2020
5565895
fix: add explore control tabOverride at the section level (#9495)
ktmud Apr 9, 2020
0610c48
[query] Migrate api v1 query to new location (#9479)
dpgaspar Apr 9, 2020
ecfc1f1
Bump FAB to 2.3.2 (#9491)
dpgaspar Apr 9, 2020
bb80cea
[dashboards] Fix, update dashboard owners not propagating to charts o…
dpgaspar Apr 9, 2020
b39e78f
[dashboards] New, tittle and slug OR filter (#9435)
dpgaspar Apr 9, 2020
5ec0192
fix: add lineWidth to Shared_DeckGL.jsx (#9496)
villebro Apr 9, 2020
262d1bb
apply changes
fbalicchia Apr 10, 2020
4da7b02
opps again .... license
fbalicchia Apr 10, 2020
a8ce3bc
feat: Add post processing to QueryObject (#9427)
villebro Apr 10, 2020
02b3fb1
Add visualization flow to the CTA queries (#9370)
bkyryliuk Apr 10, 2020
11ac8c7
Bump sqlalchemy and dremio deps (#9503)
villebro Apr 11, 2020
622561f
[charts] New, custom filter for name OR description (#9492)
dpgaspar Apr 11, 2020
a797465
docker node_modules in its own volume (#9509)
octaviancorlade Apr 11, 2020
f90824f
[Dashboard] new listview filters & emotion infra (#9462)
nytai Apr 13, 2020
cf6422c
chore: auto label issues based on the template chosen (#9507)
mistercrunch Apr 13, 2020
f29d0fd
control to turn off table bar-chart backgrounds (#9500)
rusackas Apr 13, 2020
c1f8c9e
Another attempt to fix a viz.py bug (#9522)
Apr 14, 2020
9447381
deprecate groupby controls in query_obj (#9366)
villebro Apr 14, 2020
925d8b5
[dashboard] Fix, improve test for custom filter (#9521)
dpgaspar Apr 14, 2020
c343c2f
[api] refactor, remove unnecessary code, using command pattern now (#…
dpgaspar Apr 14, 2020
6270f7d
Importing validators module from superset-ui (#9465)
rusackas Apr 14, 2020
aef06de
Fix typo in viz.py (#9533)
Apr 14, 2020
7b4b0d1
[Build] Add Github workflows (#9517)
ktmud Apr 14, 2020
1d7900a
Disabling recording in Cypress tests (#9535)
craig-rueda Apr 14, 2020
fd89900
Run CI on all pushes / PR's (#9538)
craig-rueda Apr 15, 2020
1ccda92
[list views] add work-break css for table layouts (#9537)
nytai Apr 15, 2020
d81f720
[thumbnails] API and celery task for dashboards and charts (#8947)
dpgaspar Apr 15, 2020
ef5e11f
[copy] fix: Row Level Security get_rls_filters func SELECT statement …
axelet Apr 15, 2020
3574a3a
Make email parsing more robust (#9523)
bkyryliuk Apr 15, 2020
4afedf1
docs: point our README the maintained Docker image (#9536)
mistercrunch Apr 15, 2020
8476de9
Bump copyright notice (#9539)
villebro Apr 15, 2020
403d5d6
Ditching travis config in favor of Github Actions (#9548)
craig-rueda Apr 15, 2020
d9ebd32
Bump @superset-ui/legacy-plugin-chart-table to 0.12.14 (#9549)
ktmud Apr 15, 2020
7b11b44
[dashboard] New, add statsd metrics to the API (#9519)
dpgaspar Apr 16, 2020
074e365
[fix] warm up cache error handling (#9560)
john-bodley Apr 16, 2020
4a55e1e
[fix] dashboard filter scope bug (#9550)
Apr 16, 2020
d8de540
[Build] Collect frontend code coverage from Cypress tests (#9555)
ktmud Apr 17, 2020
427d2a0
chore: Migrate unique FilterBox controls from controls.jsx (#9566)
villebro Apr 17, 2020
8e439b1
chore: Add OpenAPI docs to /api/v1/chart/data EP (#9556)
villebro Apr 17, 2020
ecf1aba
[pypi] Include compiled translations on Pypi pkg (#9567)
dpgaspar Apr 17, 2020
1b02b5b
doc: Add changelog for 0.36.0 (#9570)
villebro Apr 17, 2020
ea27e68
Migrating shared NVD3 controls to new module (#9525)
rusackas Apr 17, 2020
0472c11
fix: Add deprecated fields to QueryObject schema (#9579)
villebro Apr 18, 2020
636ee5d
[mypy] Enforcing typing for superset.migrations (#9583)
john-bodley Apr 19, 2020
06471f5
Re-enable the AnnotationLayerModelView read API (#9443)
Apr 19, 2020
083dd6a
[config] Enable dashboard bootstrap payload reduction by default (#9585)
Apr 19, 2020
2295999
[docs] fix, elastic.co elasticsearch product location (#9598)
dpgaspar Apr 20, 2020
237ac59
[fix] Fixing issue with Jinja filter_value (#9582)
john-bodley Apr 20, 2020
cb51d78
[Build] moves prettier check to separate script (#9591)
nytai Apr 20, 2020
132d774
Add documentation build to Github Actions (#9569)
Apr 20, 2020
2b957a2
Add raw number/integer option to d3 number formats (#9562)
ktmud Apr 21, 2020
ba691d3
Bump superset-ui-connection to 0.12.22 (#9602)
Apr 21, 2020
7cefc89
[charts] feat: add statsd to charts api (#9571)
Apr 21, 2020
9cf33e9
[tests] Helper script to run single tests (#9547)
dpgaspar Apr 21, 2020
0b999e3
[charts] adds new filters ui (#9530)
nytai Apr 21, 2020
dcbffed
[SQL Lab] Lock result set controls to be always visible (#9587)
Apr 21, 2020
36dc684
improve helm chart
fbalicchia Mar 22, 2020
4aa8fb2
add Apache license headers
fbalicchia Mar 22, 2020
1bfa6e4
add initjob conf + secret
fbalicchia Mar 29, 2020
5ba624b
add missing headers
fbalicchia Mar 30, 2020
0600709
apply changes
fbalicchia Apr 10, 2020
c2dc9b2
opps again .... license
fbalicchia Apr 10, 2020
003d273
Merge branch 'helm_improve' of github.com:fbalicchia/incubator-supers…
fbalicchia Apr 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion install/helm/superset/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#
apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
description: Apache Superset is a modern, enterprise-ready business intelligence web application
name: superset
maintainers:
- name: Chuan-Yen Chiang
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
apiVersion: v1
kind: ConfigMap
metadata:
name: superset-configmap
labels:
app: {{ template "superset.name" . }}
chart: {{ template "superset.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
{{ (.Files.Glob "config/*").AsConfig | indent 2 }}
dependencies:
- name: postgresql
version: 8.1.4
repository: https://kubernetes-charts.storage.googleapis.com/
condition: postgresql.enabled
- name: redis
version: 10.3.4
repository: https://kubernetes-charts.storage.googleapis.com/
condition: redis.enabled
36 changes: 36 additions & 0 deletions install/helm/superset/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,39 @@ Create chart name and version as used by the chart label.
{{- define "superset.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "superset-connections.script" }}
import os
from werkzeug.contrib.cache import RedisCache
MAPBOX_API_KEY = os.getenv('MAPBOX_API_KEY', '')

CACHE_CONFIG = {
'CACHE_TYPE': 'redis',
'CACHE_DEFAULT_TIMEOUT': 300,
'CACHE_KEY_PREFIX': 'superset_',
'CACHE_REDIS_HOST': os.getenv('REDIS_HOST'),
'CACHE_REDIS_PORT': os.getenv('REDIS_PORT'),
'CACHE_REDIS_DB': 1,
'CACHE_REDIS_URL': 'redis://%s:%s/1' % (os.getenv('REDIS_HOST'),os.getenv('REDIS_PORT'))}
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://%s:%s@%s:%s/%s' % (os.getenv('DB_USER'), os.getenv('DB_PASS'), os.getenv('DB_HOST'), os.getenv('DB_PORT'), os.getenv('DB_NAME'))
SQLALCHEMY_TRACK_MODIFICATIONS = True
SECRET_KEY = 'thisISaSECRET_1234'
# Flask-WTF flag for CSRF
WTF_CSRF_ENABLED = True
# Add endpoints that need to be exempt from CSRF protection
WTF_CSRF_EXEMPT_LIST = []
# A CSRF token that expires in 1 year
WTF_CSRF_TIME_LIMIT = 60 * 60 * 24 * 365
class CeleryConfig(object):
BROKER_URL = 'redis://%s:%s/0' % (os.getenv('REDIS_HOST'),os.getenv('REDIS_PORT'))
CELERY_IMPORTS = ('superset.sql_lab', )
CELERY_RESULT_BACKEND = 'redis://%s:%s/0' % (os.getenv('REDIS_HOST'),os.getenv('REDIS_PORT'))
CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}}

CELERY_CONFIG = CeleryConfig
RESULTS_BACKEND = RedisCache(
host= os.getenv('REDIS_HOST'),
port= os.getenv('REDIS_PORT'),
key_prefix='superset_results'
)
{{- end }}
45 changes: 41 additions & 4 deletions install/helm/superset/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,46 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: REDIS_HOST
valueFrom:
secretKeyRef:
name: superset-secret
key: redis_host
- name: REDIS_PORT
valueFrom:
secretKeyRef:
name: superset-secret
key: redis_port
- name: DB_HOST
valueFrom:
secretKeyRef:
name: superset-secret
key: db_host
- name: DB_PORT
valueFrom:
secretKeyRef:
name: superset-secret
key: db_port
- name: DB_USER
valueFrom:
secretKeyRef:
name: superset-secret
key: db_user
- name: DB_PASS
valueFrom:
secretKeyRef:
name: superset-secret
key: db_pass
- name: DB_NAME
valueFrom:
secretKeyRef:
name: superset-secret
key: db_name
volumeMounts:
- name: superset-config
mountPath: /etc/superset/
mountPath: "/etc/superset"
readOnly: true
ports:
- name: http
containerPort: 8088
Expand All @@ -61,6 +98,6 @@ spec:
{{ toYaml . | indent 8 }}
{{- end }}
volumes:
- name: "superset-config"
configMap:
name: superset-configmap
- name: superset-config
secret:
secretName: superset-config
80 changes: 80 additions & 0 deletions install/helm/superset/templates/init-job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
{{- if and ( .Values.initContainers ) ( .Values.init.enabled ) }}
apiVersion: batch/v1
kind: Job
metadata:
name: {{ template "superset.name" . }}-init-db
annotations:
spec:
template:
metadata:
name: {{ template "superset.name" . }}-init-db
spec:
initContainers:
{{- toYaml .Values.initContainers | nindent 6 }}
containers:
- name: {{ template "superset.name" . }}-init-db
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
env:
- name: REDIS_HOST
valueFrom:
secretKeyRef:
name: superset-secret
key: redis_host
- name: REDIS_PORT
valueFrom:
secretKeyRef:
name: superset-secret
key: redis_port
- name: DB_HOST
valueFrom:
secretKeyRef:
name: superset-secret
key: db_host
- name: DB_PORT
valueFrom:
secretKeyRef:
name: superset-secret
key: db_port
- name: DB_USER
valueFrom:
secretKeyRef:
name: superset-secret
key: db_user
- name: DB_PASS
valueFrom:
secretKeyRef:
name: superset-secret
key: db_pass
- name: DB_NAME
valueFrom:
secretKeyRef:
name: superset-secret
key: db_name
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: superset-config
mountPath: "/etc/superset"
readOnly: true
command: [ "/bin/sh", "-c", "{{ .Values.init.initscript }}" ]
volumes:
- name: superset-config
secret:
secretName: superset-config
restartPolicy: Never
{{- end }}
28 changes: 28 additions & 0 deletions install/helm/superset/templates/secret-superset-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
apiVersion: v1
kind: Secret
metadata:
name: {{ template "superset.fullname" . }}-config
labels:
app: {{ template "superset.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
type: Opaque
data:
superset_config.py: {{ include "superset-connections.script" . | b64enc }}
34 changes: 34 additions & 0 deletions install/helm/superset/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
apiVersion: v1
kind: Secret
metadata:
name: {{ template "superset.fullname" . }}-secret
labels:
app: {{ template "superset.fullname" . }}
chart: {{ template "superset.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
type: Opaque
data:
redis_host: {{ .Values.supersetNode.connections.redis_host | b64enc | quote }}
redis_port: {{ .Values.supersetNode.connections.redis_port | b64enc | quote }}
db_host: {{ .Values.supersetNode.connections.db_host | b64enc | quote }}
db_port: {{ .Values.supersetNode.connections.db_port | b64enc | quote }}
db_user: {{ .Values.supersetNode.connections.db_user | b64enc | quote }}
db_pass: {{ .Values.supersetNode.connections.db_pass | b64enc | quote }}
db_name: {{ .Values.supersetNode.connections.db_name | b64enc | quote }}
Loading