Skip to content

Commit 12d1006

Browse files
committed
initial version
1 parent 32d38b2 commit 12d1006

32 files changed

+4289
-321
lines changed

CODEOWNERS

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This is a comment.
2+
# Each line is a file pattern followed by one or more owners.
3+
4+
## These owners will be the default owners for everything in
5+
## the repo. Unless a later match takes precedence,
6+
## @global-owner1 and @global-owner2 will be requested for
7+
## review when someone opens a pull request.
8+
#* @global-owner1 @global-owner2
9+
* @mdebarros @elnyry-sam-k @lewisdaly @vijayg10
10+
11+
## Order is important; the last matching pattern takes the most
12+
## precedence. When someone opens a pull request that only
13+
## modifies JS files, only @js-owner and not the global
14+
## owner(s) will be requested for a review.
15+
# *.js @js-owner
16+
17+
## You can also use email addresses if you prefer. They'll be
18+
## used to look up users just like we do for commit author
19+
## emails.
20+
21+
22+
# In this example, @doctocat owns any files in the build/logs
23+
# directory at the root of the repository and any of its
24+
# subdirectories.
25+
# /build/logs/ @doctocat
26+
27+
## The `docs/*` pattern will match files like
28+
## `docs/getting-started.md` but not further nested files like
29+
## `docs/build-app/troubleshooting.md`.
30+
31+
32+
## In this example, @octocat owns any file in an apps directory
33+
## anywhere in your repository.
34+
#apps/ @octocat
35+
36+
## In this example, @doctocat owns any file in the `/docs`
37+
## directory in the root of your repository.
38+
#/docs/ @doctocat

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
[![CircleCI](https://circleci.com/gh/mojaloop/charts.svg?style=svg)](https://circleci.com/gh/mojaloop/charts)
88

99
## Quick Links
10+
1011
- [http://mojaloop.io/charts/repo/](http://mojaloop.io/charts/repo/index.yaml) Mojaloop Published Helm Repo
1112
- [Documentation - Deploying Mojaloop](https://docs.mojaloop.io/documentation/deployment-guide)
1213
- [Helm v3 Docs](https://docs.helm.sh/)
14+
15+
## Todo
16+
17+
- [ ] Truncate names (e.g. configMaps, secrets, etc) within Kubernetes specification
18+
- ..

dependencies/backend/Chart.lock

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dependencies:
2+
- name: kafka
3+
repository: https://charts.bitnami.com/bitnami
4+
version: 14.1.1
5+
- name: mysql
6+
repository: https://charts.bitnami.com/bitnami
7+
version: 8.8.7
8+
digest: sha256:89219dc2191ee41565d00b9a349e9576931a55353a13812b7e964f1d90c0184b
9+
generated: "2021-09-23T16:55:02.411133+02:00"

dependencies/backend/Chart.yaml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
apiVersion: v2
2+
name: backend
3+
description: A Helm chart for Kubernetes
4+
5+
# A chart can be either an 'application' or a 'library' chart.
6+
#
7+
# Application charts are a collection of templates that can be packaged into versioned archives
8+
# to be deployed.
9+
#
10+
# Library charts provide useful utilities or functions for the chart developer. They're included as
11+
# a dependency of application charts to inject those utilities and functions into the rendering
12+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
13+
type: application
14+
15+
# This is the chart version. This version number should be incremented each time you make changes
16+
# to the chart and its templates, including the app version.
17+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18+
version: 0.1.0
19+
20+
# This is the version number of the application being deployed. This version number should be
21+
# incremented each time you make changes to the application. Versions are not expected to
22+
# follow Semantic Versioning. They should reflect the version the application is using.
23+
# It is recommended to use it with quotes.
24+
appVersion: "1.16.0"
25+
dependencies:
26+
- name: kafka
27+
alias: kafka
28+
condition: kafka.enabled
29+
repository: "https://charts.bitnami.com/bitnami"
30+
tags:
31+
- mojaloop
32+
- dependency
33+
- backend
34+
- kafka
35+
version: 14.1.1
36+
- name: mysql
37+
alias: mysql
38+
condition: mysql.enabled
39+
repository: "https://charts.bitnami.com/bitnami"
40+
tags:
41+
- mojaloop
42+
- dependency
43+
- backend
44+
- kafka
45+
version: 8.8.7
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1. Get the application URL by running these commands:
2+
TBD
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "backend.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 "backend.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 "backend.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "backend.labels" -}}
37+
helm.sh/chart: {{ include "backend.chart" . }}
38+
{{ include "backend.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 "backend.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "backend.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 "backend.serviceAccountName" -}}
57+
{{- if .Values.serviceAccount.create }}
58+
{{- default (include "backend.fullname" .) .Values.serviceAccount.name }}
59+
{{- else }}
60+
{{- default "default" .Values.serviceAccount.name }}
61+
{{- end }}
62+
{{- end }}

0 commit comments

Comments
 (0)