-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put superset chart into the open source
- Loading branch information
1 parent
2568594
commit 4b9bfa8
Showing
104 changed files
with
13,276 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# 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. | ||
# | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
dependencies: | ||
- name: postgresql | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 10.2.0 | ||
- name: redis | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 12.3.3 | ||
digest: sha256:78d6fe5ca7fc9e16abbbb05ecc0dcbd4ab6f57103fd8f53017573de5854373f7 | ||
generated: "2022-01-27T17:59:32.871332837Z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v2 | ||
appVersion: "1.0" | ||
dependencies: | ||
- condition: postgresql.enabled | ||
name: postgresql | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 10.2.0 | ||
- condition: redis.enabled | ||
name: redis | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 12.3.3 | ||
description: Apache Superset is a modern, enterprise-ready business intelligence web | ||
application | ||
maintainers: | ||
- email: craig@craigrueda.com | ||
name: craig-rueda | ||
url: https://github.com/craig-rueda | ||
name: superset | ||
version: 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dependencies: | ||
- name: common | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 1.1.2 | ||
digest: sha256:5a5d1b6e8a55efef1c07768b6bb264c60c98e230792b9a63f85468b95cf58c45 | ||
generated: "2020-12-11T12:22:28.510708+01:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
annotations: | ||
category: Database | ||
apiVersion: v2 | ||
appVersion: 11.10.0 | ||
dependencies: | ||
- name: common | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 1.x.x | ||
description: Chart for PostgreSQL, an object-relational database management system | ||
(ORDBMS) with an emphasis on extensibility and on standards-compliance. | ||
home: https://github.com/bitnami/charts/tree/master/bitnami/postgresql | ||
icon: https://bitnami.com/assets/stacks/postgresql/img/postgresql-stack-110x117.png | ||
keywords: | ||
- postgresql | ||
- postgres | ||
- database | ||
- sql | ||
- replication | ||
- cluster | ||
maintainers: | ||
- email: containers@bitnami.com | ||
name: Bitnami | ||
- email: cedric@desaintmartin.fr | ||
name: desaintmartin | ||
name: postgresql | ||
sources: | ||
- https://github.com/bitnami/bitnami-docker-postgresql | ||
- https://www.postgresql.org/ | ||
version: 10.2.0 |
Large diffs are not rendered by default.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
charts/superset/charts/postgresql/charts/common/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
23 changes: 23 additions & 0 deletions
23
charts/superset/charts/postgresql/charts/common/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
annotations: | ||
category: Infrastructure | ||
apiVersion: v2 | ||
appVersion: 1.1.1 | ||
description: A Library Helm Chart for grouping common logic between bitnami charts. | ||
This chart is not deployable by itself. | ||
home: https://github.com/bitnami/charts/tree/master/bitnami/common | ||
icon: https://bitnami.com/downloads/logos/bitnami-mark.png | ||
keywords: | ||
- common | ||
- helper | ||
- template | ||
- function | ||
- bitnami | ||
maintainers: | ||
- email: containers@bitnami.com | ||
name: Bitnami | ||
name: common | ||
sources: | ||
- https://github.com/bitnami/charts | ||
- http://www.bitnami.com/ | ||
type: library | ||
version: 1.1.2 |
309 changes: 309 additions & 0 deletions
309
charts/superset/charts/postgresql/charts/common/README.md
Large diffs are not rendered by default.
Oops, something went wrong.
94 changes: 94 additions & 0 deletions
94
charts/superset/charts/postgresql/charts/common/templates/_affinities.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
|
||
{{/* | ||
Return a soft nodeAffinity definition | ||
{{ include "common.affinities.nodes.soft" (dict "key" "FOO" "values" (list "BAR" "BAZ")) -}} | ||
*/}} | ||
{{- define "common.affinities.nodes.soft" -}} | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- preference: | ||
matchExpressions: | ||
- key: {{ .key }} | ||
operator: In | ||
values: | ||
{{- range .values }} | ||
- {{ . }} | ||
{{- end }} | ||
weight: 1 | ||
{{- end -}} | ||
|
||
{{/* | ||
Return a hard nodeAffinity definition | ||
{{ include "common.affinities.nodes.hard" (dict "key" "FOO" "values" (list "BAR" "BAZ")) -}} | ||
*/}} | ||
{{- define "common.affinities.nodes.hard" -}} | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: {{ .key }} | ||
operator: In | ||
values: | ||
{{- range .values }} | ||
- {{ . }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return a nodeAffinity definition | ||
{{ include "common.affinities.nodes" (dict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ")) -}} | ||
*/}} | ||
{{- define "common.affinities.nodes" -}} | ||
{{- if eq .type "soft" }} | ||
{{- include "common.affinities.nodes.soft" . -}} | ||
{{- else if eq .type "hard" }} | ||
{{- include "common.affinities.nodes.hard" . -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return a soft podAffinity/podAntiAffinity definition | ||
{{ include "common.affinities.pods.soft" (dict "component" "FOO" "context" $) -}} | ||
*/}} | ||
{{- define "common.affinities.pods.soft" -}} | ||
{{- $component := default "" .component -}} | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- podAffinityTerm: | ||
labelSelector: | ||
matchLabels: {{- (include "common.labels.matchLabels" .context) | nindent 10 }} | ||
{{- if not (empty $component) }} | ||
{{ printf "app.kubernetes.io/component: %s" $component }} | ||
{{- end }} | ||
namespaces: | ||
- {{ .context.Release.Namespace }} | ||
topologyKey: kubernetes.io/hostname | ||
weight: 1 | ||
{{- end -}} | ||
|
||
{{/* | ||
Return a hard podAffinity/podAntiAffinity definition | ||
{{ include "common.affinities.pods.hard" (dict "component" "FOO" "context" $) -}} | ||
*/}} | ||
{{- define "common.affinities.pods.hard" -}} | ||
{{- $component := default "" .component -}} | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- labelSelector: | ||
matchLabels: {{- (include "common.labels.matchLabels" .context) | nindent 8 }} | ||
{{- if not (empty $component) }} | ||
{{ printf "app.kubernetes.io/component: %s" $component }} | ||
{{- end }} | ||
namespaces: | ||
- {{ .context.Release.Namespace }} | ||
topologyKey: kubernetes.io/hostname | ||
{{- end -}} | ||
|
||
{{/* | ||
Return a podAffinity/podAntiAffinity definition | ||
{{ include "common.affinities.pods" (dict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ")) -}} | ||
*/}} | ||
{{- define "common.affinities.pods" -}} | ||
{{- if eq .type "soft" }} | ||
{{- include "common.affinities.pods.soft" . -}} | ||
{{- else if eq .type "hard" }} | ||
{{- include "common.affinities.pods.hard" . -}} | ||
{{- end -}} | ||
{{- end -}} |
33 changes: 33 additions & 0 deletions
33
charts/superset/charts/postgresql/charts/common/templates/_capabilities.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Return the appropriate apiVersion for deployment. | ||
*/}} | ||
{{- define "common.capabilities.deployment.apiVersion" -}} | ||
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} | ||
{{- print "extensions/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "apps/v1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for statefulset. | ||
*/}} | ||
{{- define "common.capabilities.statefulset.apiVersion" -}} | ||
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} | ||
{{- print "apps/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "apps/v1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for ingress. | ||
*/}} | ||
{{- define "common.capabilities.ingress.apiVersion" -}} | ||
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} | ||
{{- print "extensions/v1beta1" -}} | ||
{{- else -}} | ||
{{- print "networking.k8s.io/v1beta1" -}} | ||
{{- end -}} | ||
{{- end -}} |
20 changes: 20 additions & 0 deletions
20
charts/superset/charts/postgresql/charts/common/templates/_errors.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Through error when upgrading using empty passwords values that must not be empty. | ||
Usage: | ||
{{- $validationError00 := include "common.validations.values.single.empty" (dict "valueKey" "path.to.password00" "secret" "secretName" "field" "password-00") -}} | ||
{{- $validationError01 := include "common.validations.values.single.empty" (dict "valueKey" "path.to.password01" "secret" "secretName" "field" "password-01") -}} | ||
{{ include "common.errors.upgrade.passwords.empty" (dict "validationErrors" (list $validationError00 $validationError01) "context" $) }} | ||
|
||
Required password params: | ||
- validationErrors - String - Required. List of validation strings to be return, if it is empty it won't throw error. | ||
- context - Context - Required. Parent context. | ||
*/}} | ||
{{- define "common.errors.upgrade.passwords.empty" -}} | ||
{{- $validationErrors := join "" .validationErrors -}} | ||
{{- if and $validationErrors .context.Release.IsUpgrade -}} | ||
{{- $errorString := "\nPASSWORDS ERROR: you must provide your current passwords when upgrade the release%s" -}} | ||
{{- printf $errorString $validationErrors | fail -}} | ||
{{- end -}} | ||
{{- end -}} |
43 changes: 43 additions & 0 deletions
43
charts/superset/charts/postgresql/charts/common/templates/_images.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Return the proper image name | ||
{{ include "common.images.image" ( dict "imageRoot" .Values.path.to.the.image "global" $) }} | ||
*/}} | ||
{{- define "common.images.image" -}} | ||
{{- $registryName := .imageRoot.registry -}} | ||
{{- $repositoryName := .imageRoot.repository -}} | ||
{{- $tag := .imageRoot.tag | toString -}} | ||
{{- if .global }} | ||
{{- if .global.imageRegistry }} | ||
{{- $registryName = .global.imageRegistry -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return the proper Docker Image Registry Secret Names | ||
{{ include "common.images.pullSecrets" ( dict "images" (list .Values.path.to.the.image1, .Values.path.to.the.image2) "global" .Values.global) }} | ||
*/}} | ||
{{- define "common.images.pullSecrets" -}} | ||
{{- $pullSecrets := list }} | ||
|
||
{{- if .global }} | ||
{{- range .global.imagePullSecrets -}} | ||
{{- $pullSecrets = append $pullSecrets . -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- range .images -}} | ||
{{- range .pullSecrets -}} | ||
{{- $pullSecrets = append $pullSecrets . -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- if (not (empty $pullSecrets)) }} | ||
imagePullSecrets: | ||
{{- range $pullSecrets }} | ||
- name: {{ . }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} |
18 changes: 18 additions & 0 deletions
18
charts/superset/charts/postgresql/charts/common/templates/_labels.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Kubernetes standard labels | ||
*/}} | ||
{{- define "common.labels.standard" -}} | ||
app.kubernetes.io/name: {{ include "common.names.name" . }} | ||
helm.sh/chart: {{ include "common.names.chart" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Labels to use on deploy.spec.selector.matchLabels and svc.spec.selector | ||
*/}} | ||
{{- define "common.labels.matchLabels" -}} | ||
app.kubernetes.io/name: {{ include "common.names.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end -}} |
Oops, something went wrong.