Skip to content

Commit 2d56343

Browse files
author
Utku Ozdemir
committed
Add charts:
- transmission-openvpn - gohttpserver - plex
1 parent 6e081ec commit 2d56343

34 files changed

+1343
-2
lines changed

docs/gohttpserver-0.1.0.tgz

2.85 KB
Binary file not shown.

docs/index.yaml

+32-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,43 @@
11
apiVersion: v1
22
entries:
3+
gohttpserver:
4+
- apiVersion: v1
5+
appVersion: latest
6+
created: "2020-04-21T00:58:15.729366+02:00"
7+
description: GoHttpServer
8+
digest: 1ca503f321b2578255fb0444235796c14673d3c1ab0172272e1751d6f8f318f8
9+
name: gohttpserver
10+
urls:
11+
- https://utkuozdemir.org/helm-charts/gohttpserver-0.1.0.tgz
12+
version: 0.1.0
13+
plex:
14+
- apiVersion: v1
15+
appVersion: 1.16.5.1554-1e5ff713d
16+
created: "2020-04-21T00:58:15.730063+02:00"
17+
description: Plex
18+
digest: cf6cc48ea7f9666f65a34c21da073f2898f83f3897ba2aa0ca8579411bec238f
19+
name: plex
20+
urls:
21+
- https://utkuozdemir.org/helm-charts/plex-0.1.0.tgz
22+
version: 0.1.0
323
transmission-exporter:
424
- apiVersion: v1
525
appVersion: 0.3.0
6-
created: "2020-04-21T00:37:30.6434+02:00"
26+
created: "2020-04-21T00:58:15.731193+02:00"
727
description: Transmission Exporter
828
digest: 1ba9f2f6a6915b762efd3ff8c331920826b4d19b3db932da325c698138a7bede
929
name: transmission-exporter
1030
urls:
1131
- https://utkuozdemir.org/helm-charts/transmission-exporter-0.1.0.tgz
1232
version: 0.1.0
13-
generated: "2020-04-21T00:37:30.641931+02:00"
33+
transmission-openvpn:
34+
- apiVersion: v1
35+
appVersion: "2.7"
36+
created: "2020-04-21T00:58:15.731984+02:00"
37+
description: Transmission + OpenVPN
38+
digest: 41fcc45a6c5dbaeba39c550d4ee0c23b840e460e9626e1b45559db0d1c3ec0a6
39+
name: transmission-openvpn
40+
urls:
41+
- https://utkuozdemir.org/helm-charts/transmission-openvpn-0.1.0.tgz
42+
version: 0.1.0
43+
generated: "2020-04-21T00:58:15.728574+02:00"

docs/plex-0.1.0.tgz

3.87 KB
Binary file not shown.

docs/transmission-openvpn-0.1.0.tgz

3.71 KB
Binary file not shown.

gohttpserver/.helmignore

+22
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/

gohttpserver/Chart.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: v1
2+
appVersion: "latest"
3+
description: GoHttpServer
4+
name: gohttpserver
5+
version: 0.1.0

gohttpserver/templates/_helpers.tpl

+135
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
{{/*
3+
Expand the name of the chart.
4+
*/}}
5+
{{- define "gohttpserver.name" -}}
6+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
7+
{{- end -}}
8+
9+
{{/*
10+
Create a default fully qualified app name.
11+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
12+
If release name contains chart name it will be used as a full name.
13+
*/}}
14+
{{- define "gohttpserver.fullname" -}}
15+
{{- if .Values.fullnameOverride -}}
16+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
17+
{{- else -}}
18+
{{- $name := default .Chart.Name .Values.nameOverride -}}
19+
{{- if contains $name .Release.Name -}}
20+
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
21+
{{- else -}}
22+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
23+
{{- end -}}
24+
{{- end -}}
25+
{{- end -}}
26+
27+
{{/*
28+
Create chart name and version as used by the chart label.
29+
*/}}
30+
{{- define "gohttpserver.chart" -}}
31+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
32+
{{- end -}}
33+
34+
{{/*
35+
Common labels
36+
*/}}
37+
{{- define "gohttpserver.labels" -}}
38+
app.kubernetes.io/name: {{ include "gohttpserver.name" . }}
39+
helm.sh/chart: {{ include "gohttpserver.chart" . }}
40+
app.kubernetes.io/instance: {{ .Release.Name }}
41+
{{- if .Chart.AppVersion }}
42+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
43+
{{- end }}
44+
app.kubernetes.io/managed-by: {{ .Release.Service }}
45+
{{- end -}}
46+
47+
{{/*API VERSIONS*/}}
48+
49+
{{/*
50+
Return the appropriate apiVersion for networkpolicy.
51+
*/}}
52+
{{- define "networkpolicy.apiVersion" -}}
53+
{{- if semverCompare ">=1.4-0, <1.7-0" .Capabilities.KubeVersion.GitVersion -}}
54+
{{- print "extensions/v1beta1" -}}
55+
{{- else if semverCompare "^1.7-0" .Capabilities.KubeVersion.GitVersion -}}
56+
{{- print "networking.k8s.io/v1" -}}
57+
{{- end -}}
58+
{{- end -}}
59+
60+
{{/*
61+
Return the appropriate apiVersion for deployment.
62+
*/}}
63+
{{- define "deployment.apiVersion" -}}
64+
{{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.GitVersion -}}
65+
{{- print "apps/v1beta2" -}}
66+
{{- else -}}
67+
{{- print "apps/v1" -}}
68+
{{- end -}}
69+
{{- end -}}
70+
71+
{{/*
72+
Return the appropriate apiVersion for statefulset.
73+
*/}}
74+
{{- define "statefulset.apiVersion" -}}
75+
{{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.GitVersion -}}
76+
{{- print "apps/v1beta2" -}}
77+
{{- else -}}
78+
{{- print "apps/v1" -}}
79+
{{- end -}}
80+
{{- end -}}
81+
82+
{{/*
83+
Return the appropriate apiVersion for ingress.
84+
*/}}
85+
{{- define "ingress.apiVersion" -}}
86+
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}}
87+
{{- print "extensions/v1beta1" -}}
88+
{{- else -}}
89+
{{- print "networking.k8s.io/v1beta1" -}}
90+
{{- end -}}
91+
{{- end -}}
92+
93+
{{/*
94+
Return the appropriate apiVersion for daemonset.
95+
*/}}
96+
{{- define "daemonset.apiVersion" -}}
97+
{{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.GitVersion -}}
98+
{{- print "extensions/v1beta1" -}}
99+
{{- else -}}
100+
{{- print "apps/v1" -}}
101+
{{- end -}}
102+
{{- end -}}
103+
104+
{{/*
105+
Return the appropriate apiVersion for cronjob.
106+
*/}}
107+
{{- define "cronjob.apiVersion" -}}
108+
{{- if semverCompare "< 1.8-0" .Capabilities.KubeVersion.GitVersion -}}
109+
{{- print "batch/v2alpha1" }}
110+
{{- else if semverCompare ">=1.8-0" .Capabilities.KubeVersion.GitVersion -}}
111+
{{- print "batch/v1beta1" }}
112+
{{- end -}}
113+
{{- end -}}
114+
115+
{{/*
116+
Return the appropriate apiVersion for podsecuritypolicy.
117+
*/}}
118+
{{- define "podsecuritypolicy.apiVersion" -}}
119+
{{- if semverCompare "<1.10-0" .Capabilities.KubeVersion.GitVersion -}}
120+
{{- print "extensions/v1beta1" -}}
121+
{{- else -}}
122+
{{- print "policy/v1beta1" -}}
123+
{{- end -}}
124+
{{- end -}}
125+
126+
{{/*
127+
Return the appropriate apiVersion for rbac resources.
128+
*/}}
129+
{{- define "rbac.apiVersion" -}}
130+
{{- if semverCompare "^1.8-0" .Capabilities.KubeVersion.GitVersion -}}
131+
"rbac.authorization.k8s.io/v1"
132+
{{- else -}}
133+
"rbac.authorization.k8s.io/v1beta1"
134+
{{- end -}}
135+
{{- end -}}
+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: {{ template "deployment.apiVersion" . }}
2+
kind: Deployment
3+
metadata:
4+
name: {{ include "gohttpserver.fullname" . }}
5+
labels:
6+
{{ include "gohttpserver.labels" . | indent 4 }}
7+
spec:
8+
replicas: {{ .Values.replicaCount }}
9+
selector:
10+
matchLabels:
11+
app.kubernetes.io/name: {{ include "gohttpserver.name" . }}
12+
app.kubernetes.io/instance: {{ .Release.Name }}
13+
template:
14+
metadata:
15+
labels:
16+
app.kubernetes.io/name: {{ include "gohttpserver.name" . }}
17+
app.kubernetes.io/instance: {{ .Release.Name }}
18+
spec:
19+
containers:
20+
- name: {{ .Chart.Name }}
21+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
22+
imagePullPolicy: {{ .Values.image.pullPolicy }}
23+
ports:
24+
- containerPort: 8000
25+
name: http
26+
volumeMounts:
27+
- mountPath: /app/public
28+
name: data
29+
resources:
30+
{{- toYaml .Values.resources | nindent 12 }}
31+
{{- with .Values.nodeSelector }}
32+
nodeSelector:
33+
{{- toYaml . | nindent 8 }}
34+
{{- end }}
35+
{{- with .Values.affinity }}
36+
affinity:
37+
{{- toYaml . | nindent 8 }}
38+
{{- end }}
39+
{{- with .Values.tolerations }}
40+
tolerations:
41+
{{- toYaml . | nindent 8 }}
42+
{{- end }}
43+
volumes:
44+
- name: data
45+
{{- if .Values.persistence.enabled }}
46+
persistentVolumeClaim:
47+
claimName: {{ .Values.persistence.existingClaim | default (include "gohttpserver.fullname" .) }}
48+
{{- else }}
49+
emptyDir: {}
50+
{{- end }}

gohttpserver/templates/ingress.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{{- if .Values.ingress.enabled -}}
2+
{{- $fullName := include "gohttpserver.fullname" . -}}
3+
{{- $ingressPath := .Values.ingress.path -}}
4+
apiVersion: {{ template "ingress.apiVersion" . }}
5+
kind: Ingress
6+
metadata:
7+
name: {{ $fullName }}
8+
namespace: {{ .Release.Namespace }}
9+
labels:
10+
app: {{ template "gohttpserver.name" . }}
11+
chart: {{ template "gohttpserver.chart" . }}
12+
release: {{ .Release.Name }}
13+
heritage: {{ .Release.Service }}
14+
{{- if .Values.ingress.labels }}
15+
{{ toYaml .Values.ingress.labels | indent 4 }}
16+
{{- end }}
17+
{{- with .Values.ingress.annotations }}
18+
annotations:
19+
{{ toYaml . | indent 4 }}
20+
{{- end }}
21+
spec:
22+
{{- if .Values.ingress.tls }}
23+
tls:
24+
{{ toYaml .Values.ingress.tls | indent 4 }}
25+
{{- end }}
26+
rules:
27+
{{- range .Values.ingress.hosts }}
28+
- host: {{ . }}
29+
http:
30+
paths:
31+
- path: {{ $ingressPath }}
32+
backend:
33+
serviceName: {{ $fullName }}
34+
servicePort: http
35+
{{- end }}
36+
{{- end }}

gohttpserver/templates/pvc.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
2+
apiVersion: v1
3+
kind: PersistentVolumeClaim
4+
metadata:
5+
name: {{ include "gohttpserver.fullname" . }}
6+
labels:
7+
{{ include "gohttpserver.labels" . | indent 4 }}
8+
{{- with .Values.persistence.annotations }}
9+
annotations:
10+
{{ toYaml . | indent 4 }}
11+
{{- end }}
12+
{{- with .Values.persistence.finalizers }}
13+
finalizers:
14+
{{ toYaml . | indent 4 }}
15+
{{- end }}
16+
spec:
17+
accessModes:
18+
{{- range .Values.persistence.accessModes }}
19+
- {{ . | quote }}
20+
{{- end }}
21+
resources:
22+
requests:
23+
storage: {{ .Values.persistence.size | quote }}
24+
storageClassName: {{ .Values.persistence.storageClassName }}
25+
{{- end -}}

gohttpserver/templates/service.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: {{ include "gohttpserver.fullname" . }}
5+
labels:
6+
{{ include "gohttpserver.labels" . | indent 4 }}
7+
spec:
8+
type: {{ .Values.service.type }}
9+
ports:
10+
- port: {{ .Values.service.port }}
11+
targetPort: http
12+
protocol: TCP
13+
name: http
14+
selector:
15+
app.kubernetes.io/name: {{ include "gohttpserver.name" . }}
16+
app.kubernetes.io/instance: {{ .Release.Name }}

0 commit comments

Comments
 (0)