Skip to content

Commit 763b1b6

Browse files
authored
feat: onboard umami (#792)
* fix/fix-dagster * fix: fix pr comment * feat: onboard umami * feat: upgrade umami to latest version (v2)
1 parent 4395493 commit 763b1b6

32 files changed

+460
-0
lines changed

umami/Pluralfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
REPO umami
2+
ATTRIBUTES Plural repository.yaml
3+
4+
TF terraform/*
5+
HELM helm/*
6+
RECIPE plural/recipes/*

umami/helm/umami/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

umami/helm/umami/Chart.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dependencies:
2+
- name: umami
3+
repository: https://christianknell.github.io/helm-charts
4+
version: 1.14.0
5+
- name: postgres
6+
repository: https://pluralsh.github.io/module-library
7+
version: 0.1.5
8+
digest: sha256:e7efcaf3f2611252330a76bf731458913b17c028512f00f6111b2e0d40bd69b8
9+
generated: "2023-07-29T20:47:45.966701+02:00"

umami/helm/umami/Chart.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v2
2+
name: umami
3+
description: helm chart for umami
4+
type: application
5+
version: 0.1.0
6+
appVersion: 2.4.1
7+
dependencies:
8+
- name: umami
9+
version: 1.14.0
10+
repository: https://christianknell.github.io/helm-charts
11+
- name: postgres
12+
version: 0.1.5
13+
repository: https://pluralsh.github.io/module-library

umami/helm/umami/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A helm chart for umami
4.08 KB
Binary file not shown.
109 KB
Binary file not shown.

umami/helm/umami/deps.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
apiVersion: plural.sh/v1alpha1
2+
kind: Dependencies
3+
metadata:
4+
application: true
5+
description: Deploys umami crafted for the target cloud
6+
spec:
7+
dependencies:
8+
- type: helm
9+
name: bootstrap
10+
repo: bootstrap
11+
version: '>= 0.5.1'
12+
- type: helm
13+
name: ingress-nginx
14+
repo: ingress-nginx
15+
version: ">= 0.1.2"
16+
- type: helm
17+
name: postgres
18+
repo: postgres
19+
version: ">= 0.1.6"
20+
- type: terraform
21+
name: aws
22+
repo: umami
23+
version: '>= 0.1.0'
24+
optional: true
25+
- type: terraform
26+
name: azure
27+
repo: umami
28+
version: '>= 0.1.0'
29+
optional: true
30+
- type: terraform
31+
name: gcp
32+
repo: umami
33+
version: '>= 0.1.0'
34+
optional: true
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "umami-plural.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "umami-plural.fullname" -}}
14+
{{- if .Values.fullnameOverride }}
15+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.nameOverride }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "umami-plural.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "umami-plural.labels" -}}
37+
helm.sh/chart: {{ include "umami-plural.chart" . }}
38+
{{ include "umami-plural.selectorLabels" . }}
39+
{{- if .Chart.AppVersion }}
40+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
41+
{{- end }}
42+
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- end }}
44+
45+
{{/*
46+
Selector labels
47+
*/}}
48+
{{- define "umami-plural.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "umami-plural.name" . }}
50+
app.kubernetes.io/instance: {{ .Release.Name }}
51+
{{- end }}
52+
53+
{{/*
54+
Create the name of the service account to use
55+
*/}}
56+
{{- define "umami-plural.serviceAccountName" -}}
57+
{{- if .Values.serviceAccount.create }}
58+
{{- default (include "umami-plural.fullname" .) .Values.serviceAccount.name }}
59+
{{- else }}
60+
{{- default "default" .Values.serviceAccount.name }}
61+
{{- end }}
62+
{{- end }}
63+
64+
{{- define "umami-plural.secretName" -}}
65+
{{- printf "%s-secret" (include "umami-plural.fullname" .) }}
66+
{{- end }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: umami.plural-postgres-umami.credentials.postgresql.acid.zalan.do
5+
labels:
6+
{{ include "umami-plural.labels" . | indent 4 }}
7+
stringData:
8+
username: umami
9+
password: {{ .Values.postgres.password }}
10+
---
11+
apiVersion: v1
12+
kind: Secret
13+
metadata:
14+
name: umami-postgres-dsn
15+
labels:
16+
{{ include "umami-plural.labels" . | indent 4 }}
17+
stringData:
18+
dsn: {{ .Values.postgres.dsn }}

0 commit comments

Comments
 (0)