Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
release 0.0.1 redash
Browse files Browse the repository at this point in the history
  • Loading branch information
fcomte committed Apr 2, 2021
1 parent a53b6be commit 6ff80db
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 0 deletions.
32 changes: 32 additions & 0 deletions charts/redash/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: v2
name: redash
description: Redash is an open source tool built for teams to query, visualize and collaborate.
icon: https://redash.io/assets/images/elements/redash-logo.svg
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 1
dependencies:
- name: redash
version: 2.3.0
repository: https://getredash.github.io/contrib-helm-chart/
enabled: true




32 changes: 32 additions & 0 deletions charts/redash/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "redash.fullname" . -}}
{{- $svcPort := .Values.redash.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "redash.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
- hosts:
- {{ .Values.ingress.hostname | quote }}
{{- end }}
rules:
- host: {{ .Values.ingress.hostname | quote }}
http:
paths:
- path: /
backend:
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
86 changes: 86 additions & 0 deletions charts/redash/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"redash": {
"description": "postgres specific configuration",
"type": "object",
"title": "Database",
"properties": {
"postgresql": {
"description": "postgres specific configuration",
"type": "object",
"title": "Database",
"properties": {
"postgresqlUsername": {
"type": "string",
"title": "Admin user",
"default": "admin",
"x-form": {
"value": "{{user.idep}}"
}
},
"postgresqlPassword": {
"type": "string",
"title": "Password",
"default": "changeme",
"x-form": {
"value": "{{user.password}}"
}
},
"postgresqlDatabase": {
"description": "Name for the default database that is created when the image is first started.",
"type": "string",
"title": "Database",
"default": "redash"
}
}
},
"redash": {
"description": "redash specific configuration",
"type": "object",
"title": "redash",
"properties": {
"cookieSecret": {
"type": "string",
"title": "Admin user",
"default": "admin",
"x-form": {
"value": "{{user.password}}"
}
},
"secretKey": {
"type": "string",
"title": "Password",
"default": "changeme",
"x-form": {
"value": "{{user.password}}"
}
}
}
}
}
},
"ingress": {
"type": "object",
"form": true,
"title": "Ingress Details",
"properties": {
"hostname": {
"type": "string",
"form": true,
"title": "Hostname",
"x-form": {
"hidden": true
},
"x-generated": {
"type": "externalDNS",
"scope": "redash",
"name": "ihm"
}
}
}
}
}

}
19 changes: 19 additions & 0 deletions charts/redash/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ingress:
enabled: true
tls: true
annotations:
kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hostname: redash.lab.sspcloud.fr
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

redash:
redash:
cookieSecret: changeme
secretKey: changeme
postgresql:
postgresqlPassword: changeme
postgresqlUsername: admin
fullnameOverride: "redash-db"

0 comments on commit 6ff80db

Please sign in to comment.