Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 8bf6e0a

Browse files
Merge pull request #1 from alliander-opensource/feature/simplify-chart
Simplify helm chart
2 parents 2972888 + bbc4429 commit 8bf6e0a

File tree

8 files changed

+36
-41
lines changed

8 files changed

+36
-41
lines changed

charts/pokertool/Chart.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,3 @@ keywords:
77
- "kotlin"
88
- "scrum"
99
- "poker"
10-
dependencies:
11-
- name: common
12-
version: 2.27.0
13-
repository: https://charts.bitnami.com/bitnami
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: {{ template "common.names.fullname" . }}-backend
4+
name: pokertool-backend
55
labels:
6-
{{- include "common.labels.standard" . | nindent 4 }}
6+
app.kubernetes.io/name: pokertool
77
app.kubernetes.io/component: backend
88
spec:
99
replicas: {{ .Values.backend.replicas }}
1010
selector:
1111
matchLabels:
12-
{{- include "common.labels.standard" . | nindent 6 }}
12+
app.kubernetes.io/name: pokertool
1313
app.kubernetes.io/component: backend
1414
template:
15+
metadata:
16+
labels:
17+
app.kubernetes.io/name: pokertool
18+
app.kubernetes.io/component: backend
1519
spec:
1620
containers:
17-
{{- with .Values.backend.image}}
18-
- image: "{{ .registry }}/{{ .name }}:{{ .tag }}"
19-
{{- end }}
20-
name: {{ template "common.names.fullname" . }}-backend
21+
- name: pokertool-backend
22+
{{- with .Values.backend.image}}
23+
image: "{{ .registry }}/{{ .name }}:{{ .tag }}"
24+
{{- end }}
2125
ports:
2226
- containerPort: 8080
23-
metadata:
24-
labels:
25-
{{- include "common.labels.standard" . | nindent 8 }}
26-
app.kubernetes.io/component: backend

charts/pokertool/templates/backend/ingress.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
apiVersion: networking.k8s.io/v1
33
kind: Ingress
44
metadata:
5-
name: {{ template "common.names.fullname" . }}-backend
5+
name: pokertool-backend
66
labels:
7-
{{- include "common.labels.standard" . | nindent 4 }}
7+
app.kubernetes.io/name: pokertool
88
app.kubernetes.io/component: backend
99
spec:
1010
rules:
@@ -13,13 +13,13 @@ spec:
1313
paths:
1414
- backend:
1515
service:
16-
name: {{ template "common.names.fullname" . }}-backend
16+
name: pokertool-backend
1717
port:
1818
number: 80
1919
path: /api
2020
pathType: Prefix
2121
tls:
2222
- hosts:
2323
- {{ .Values.ingress.domain | required "ingress.domain required" }}
24-
secretName: {{ template "common.names.fullname" . }}-backend-cert
24+
secretName: pokertool-backend-cert
2525
{{- end }}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: {{ template "common.names.fullname" . }}-backend
4+
name: pokertool-backend
55
labels:
6-
{{- include "common.labels.standard" . | nindent 4 }}
6+
app.kubernetes.io/name: pokertool
77
app.kubernetes.io/component: backend
88
spec:
9+
selector:
10+
app.kubernetes.io/name: pokertool
11+
app.kubernetes.io/component: backend
912
ports:
1013
- port: 80
1114
targetPort: 8080
12-
selector:
13-
{{- include "common.labels.standard" . | nindent 4 }}
14-
app.kubernetes.io/component: backend
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: {{ template "common.names.fullname" . }}-frontend
4+
name: pokertool-frontend
55
labels:
6-
{{- include "common.labels.standard" . | nindent 4 }}
6+
app.kubernetes.io/name: pokertool
77
app.kubernetes.io/component: frontend
88
spec:
99
replicas: {{ .Values.frontend.replicas }}
1010
selector:
1111
matchLabels:
12-
{{- include "common.labels.standard" . | nindent 6 }}
12+
app.kubernetes.io/name: pokertool
1313
app.kubernetes.io/component: frontend
1414
template:
1515
spec:
1616
containers:
17-
{{- with .Values.frontend.image}}
18-
- image: "{{ .registry }}/{{ .name }}:{{ .tag }}"
17+
- name: pokertool-frontend
18+
{{- with .Values.frontend.image }}
19+
image: "{{ .registry }}/{{ .name }}:{{ .tag }}"
1920
{{- end }}
20-
name: {{ template "common.names.fullname" . }}-frontend
2121
ports:
2222
- containerPort: 80
2323
metadata:
2424
labels:
25-
{{- include "common.labels.standard" . | nindent 8 }}
25+
app.kubernetes.io/name: pokertool
2626
app.kubernetes.io/component: frontend

charts/pokertool/templates/frontend/ingress.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
apiVersion: networking.k8s.io/v1
33
kind: Ingress
44
metadata:
5-
name: {{ template "common.names.fullname" . }}-frontend
5+
name: pokertool-frontend
66
labels:
7-
{{- include "common.labels.standard" . | nindent 4 }}
7+
app.kubernetes.io/name: pokertool
88
app.kubernetes.io/component: frontend
99
spec:
1010
rules:
@@ -13,13 +13,13 @@ spec:
1313
paths:
1414
- backend:
1515
service:
16-
name: {{ template "common.names.fullname" . }}-frontend
16+
name: pokertool-frontend
1717
port:
1818
number: 80
1919
path: /
2020
pathType: Prefix
2121
tls:
2222
- hosts:
2323
- {{ .Values.ingress.domain | required "ingress.domain required" }}
24-
secretName: {{ template "common.names.fullname" . }}-frontend-cert
24+
secretName: pokertool-frontend-cert
2525
{{- end }}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: {{ template "common.names.fullname" . }}-frontend
4+
name: pokertool-frontend
55
labels:
6-
{{- include "common.labels.standard" . | nindent 4 }}
6+
app.kubernetes.io/name: pokertool
77
app.kubernetes.io/component: frontend
88
spec:
9+
selector:
10+
app.kubernetes.io/name: pokertool
11+
app.kubernetes.io/component: frontend
912
ports:
1013
- port: 80
1114
targetPort: 80
12-
selector:
13-
{{- include "common.labels.standard" . | nindent 4 }}
14-
app.kubernetes.io/component: frontend

release.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
TOKEN=$1
44

5-
helm repo add bitnami https://charts.bitnami.com/bitnami
65
cr upload -o alliander-opensource -r pokertool-chart --push --generate-release-notes --token "$TOKEN"
76
cr index -o alliander-opensource -r pokertool-chart --push --index-path index.yaml --token "$TOKEN"

0 commit comments

Comments
 (0)