Skip to content

Commit fda21a4

Browse files
authored
Merge pull request #6 from akash4sh/main
Add Helm Release YAML workflow and Tracetest Helm chart
2 parents 03b7164 + e660a49 commit fda21a4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+7500
-0
lines changed

.github/workflows/helm_release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Helm Chart publish
2+
3+
on:
4+
push:
5+
paths:
6+
- 'charts/**'
7+
branches:
8+
- main
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Configure Git
19+
run: |
20+
git config user.name "$GITHUB_ACTOR"
21+
git config user.email "$GITHUB_ACTOR@gmail.com"
22+
23+
- name: Add Helm repos
24+
run: |
25+
helm repo add bitnami https://charts.bitnami.com/bitnami
26+
27+
- name: Run chart-releaser
28+
uses: helm/chart-releaser-action@v1.5.0
29+
env:
30+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
31+
CR_SKIP_EXISTING: true

charts/tracetest/.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/

charts/tracetest/Chart.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: postgresql
3+
repository: https://charts.bitnami.com/bitnami
4+
version: 12.1.6
5+
digest: sha256:1d322085e38b82a7c8cb3c1b0d1ff2841b81ab16215e75991fd7fa7d8ff57087
6+
generated: "2023-07-18T22:27:46.219176844Z"

charts/tracetest/Chart.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v2
2+
appVersion: v0.13.0
3+
dependencies:
4+
- name: postgresql
5+
repository: https://charts.bitnami.com/bitnami
6+
version: 12.1.6
7+
description: A Helm chart for Trace Test
8+
home: https://github.com/kubeshop/helm-charts
9+
name: tracetest
10+
sources:
11+
- https://github.com/kubeshop/helm-charts/tree/main/charts
12+
type: application
13+
version: 1.0.0

charts/tracetest/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Tracetest
2+
3+
This is the Helm chart for [Tracetest](https://github.com/kubeshop/tracetest) installation.
4+
5+
## Installation
6+
7+
### Chart installation
8+
9+
Add repo:
10+
11+
```sh
12+
helm repo add kubeshop https://kubeshop.github.io/helm-charts
13+
helm repo update
14+
15+
```
16+
17+
```sh
18+
helm install tracetest kubeshop/tracetest
19+
```
20+
21+
## Uninstall
22+
23+
```sh
24+
helm delete tracetest
25+
```
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
*~
18+
# Various IDEs
19+
.project
20+
.idea/
21+
*.tmproj
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: common
3+
repository: https://charts.bitnami.com/bitnami
4+
version: 2.2.2
5+
digest: sha256:49ca75cf23ba5eb7df4becef52580f98c8bd8194eb80368b9d7b875f6eefa8e5
6+
generated: "2022-12-14T19:37:46.129876178Z"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
annotations:
2+
category: Database
3+
apiVersion: v2
4+
appVersion: 15.1.0
5+
dependencies:
6+
- name: common
7+
repository: https://charts.bitnami.com/bitnami
8+
tags:
9+
- bitnami-common
10+
version: 2.x.x
11+
description: PostgreSQL (Postgres) is an open source object-relational database known
12+
for reliability and data integrity. ACID-compliant, it supports foreign keys, joins,
13+
views, triggers and stored procedures.
14+
home: https://github.com/bitnami/charts/tree/main/bitnami/postgresql
15+
icon: https://bitnami.com/assets/stacks/postgresql/img/postgresql-stack-220x234.png
16+
keywords:
17+
- postgresql
18+
- postgres
19+
- database
20+
- sql
21+
- replication
22+
- cluster
23+
maintainers:
24+
- name: Bitnami
25+
url: https://github.com/bitnami/charts
26+
name: postgresql
27+
sources:
28+
- https://github.com/bitnami/containers/tree/main/bitnami/postgresql
29+
- https://www.postgresql.org/
30+
version: 12.1.6

charts/tracetest/charts/postgresql/README.md

Lines changed: 693 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
*~
18+
# Various IDEs
19+
.project
20+
.idea/
21+
*.tmproj
22+
.vscode/
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
annotations:
2+
category: Infrastructure
3+
apiVersion: v2
4+
appVersion: 2.2.2
5+
description: A Library Helm Chart for grouping common logic between bitnami charts.
6+
This chart is not deployable by itself.
7+
home: https://github.com/bitnami/charts/tree/main/bitnami/common
8+
icon: https://bitnami.com/downloads/logos/bitnami-mark.png
9+
keywords:
10+
- common
11+
- helper
12+
- template
13+
- function
14+
- bitnami
15+
maintainers:
16+
- name: Bitnami
17+
url: https://github.com/bitnami/charts
18+
name: common
19+
sources:
20+
- https://github.com/bitnami/charts
21+
- https://www.bitnami.com/
22+
type: library
23+
version: 2.2.2

charts/tracetest/charts/postgresql/charts/common/README.md

Lines changed: 351 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
3+
{{/*
4+
Return a soft nodeAffinity definition
5+
{{ include "common.affinities.nodes.soft" (dict "key" "FOO" "values" (list "BAR" "BAZ")) -}}
6+
*/}}
7+
{{- define "common.affinities.nodes.soft" -}}
8+
preferredDuringSchedulingIgnoredDuringExecution:
9+
- preference:
10+
matchExpressions:
11+
- key: {{ .key }}
12+
operator: In
13+
values:
14+
{{- range .values }}
15+
- {{ . | quote }}
16+
{{- end }}
17+
weight: 1
18+
{{- end -}}
19+
20+
{{/*
21+
Return a hard nodeAffinity definition
22+
{{ include "common.affinities.nodes.hard" (dict "key" "FOO" "values" (list "BAR" "BAZ")) -}}
23+
*/}}
24+
{{- define "common.affinities.nodes.hard" -}}
25+
requiredDuringSchedulingIgnoredDuringExecution:
26+
nodeSelectorTerms:
27+
- matchExpressions:
28+
- key: {{ .key }}
29+
operator: In
30+
values:
31+
{{- range .values }}
32+
- {{ . | quote }}
33+
{{- end }}
34+
{{- end -}}
35+
36+
{{/*
37+
Return a nodeAffinity definition
38+
{{ include "common.affinities.nodes" (dict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ")) -}}
39+
*/}}
40+
{{- define "common.affinities.nodes" -}}
41+
{{- if eq .type "soft" }}
42+
{{- include "common.affinities.nodes.soft" . -}}
43+
{{- else if eq .type "hard" }}
44+
{{- include "common.affinities.nodes.hard" . -}}
45+
{{- end -}}
46+
{{- end -}}
47+
48+
{{/*
49+
Return a topologyKey definition
50+
{{ include "common.affinities.topologyKey" (dict "topologyKey" "BAR") -}}
51+
*/}}
52+
{{- define "common.affinities.topologyKey" -}}
53+
{{ .topologyKey | default "kubernetes.io/hostname" -}}
54+
{{- end -}}
55+
56+
{{/*
57+
Return a soft podAffinity/podAntiAffinity definition
58+
{{ include "common.affinities.pods.soft" (dict "component" "FOO" "extraMatchLabels" .Values.extraMatchLabels "topologyKey" "BAR" "context" $) -}}
59+
*/}}
60+
{{- define "common.affinities.pods.soft" -}}
61+
{{- $component := default "" .component -}}
62+
{{- $extraMatchLabels := default (dict) .extraMatchLabels -}}
63+
preferredDuringSchedulingIgnoredDuringExecution:
64+
- podAffinityTerm:
65+
labelSelector:
66+
matchLabels: {{- (include "common.labels.matchLabels" .context) | nindent 10 }}
67+
{{- if not (empty $component) }}
68+
{{ printf "app.kubernetes.io/component: %s" $component }}
69+
{{- end }}
70+
{{- range $key, $value := $extraMatchLabels }}
71+
{{ $key }}: {{ $value | quote }}
72+
{{- end }}
73+
topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }}
74+
weight: 1
75+
{{- end -}}
76+
77+
{{/*
78+
Return a hard podAffinity/podAntiAffinity definition
79+
{{ include "common.affinities.pods.hard" (dict "component" "FOO" "extraMatchLabels" .Values.extraMatchLabels "topologyKey" "BAR" "context" $) -}}
80+
*/}}
81+
{{- define "common.affinities.pods.hard" -}}
82+
{{- $component := default "" .component -}}
83+
{{- $extraMatchLabels := default (dict) .extraMatchLabels -}}
84+
requiredDuringSchedulingIgnoredDuringExecution:
85+
- labelSelector:
86+
matchLabels: {{- (include "common.labels.matchLabels" .context) | nindent 8 }}
87+
{{- if not (empty $component) }}
88+
{{ printf "app.kubernetes.io/component: %s" $component }}
89+
{{- end }}
90+
{{- range $key, $value := $extraMatchLabels }}
91+
{{ $key }}: {{ $value | quote }}
92+
{{- end }}
93+
topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }}
94+
{{- end -}}
95+
96+
{{/*
97+
Return a podAffinity/podAntiAffinity definition
98+
{{ include "common.affinities.pods" (dict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ")) -}}
99+
*/}}
100+
{{- define "common.affinities.pods" -}}
101+
{{- if eq .type "soft" }}
102+
{{- include "common.affinities.pods.soft" . -}}
103+
{{- else if eq .type "hard" }}
104+
{{- include "common.affinities.pods.hard" . -}}
105+
{{- end -}}
106+
{{- end -}}

0 commit comments

Comments
 (0)