Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit d44a830

Browse files
author
Raymond Augé
authored
Merge pull request #46 from rotty3000/main
main
2 parents ba705e8 + 5e9f373 commit d44a830

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

templates/database/statefulset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ metadata:
101101
spec:
102102
selector:
103103
app: {{ $.Chart.Name }}-database
104-
{{- include "liferay.labels" $ | nindent 4 }}
104+
{{- include "liferay.selectorLabels" $ | nindent 4 }}
105105
ports:
106106
- name: database
107107
port: {{ .config.port }}
@@ -120,7 +120,7 @@ spec:
120120
clusterIP: None # This is what makes it headless
121121
selector:
122122
app: {{ $.Chart.Name }}-database
123-
{{- include "liferay.labels" $ | nindent 4 }}
123+
{{- include "liferay.selectorLabels" $ | nindent 4 }}
124124
ports:
125125
- name: database
126126
port: {{ .config.port }}

templates/headless-service.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: Service
33
metadata:
44
name: {{ include "liferay.fullname" . }}-headless
55
labels:
6+
app: {{ $.Chart.Name }}
67
{{- include "liferay.labels" . | nindent 4 }}
78
spec:
89
clusterIP: None # This is what makes it headless
@@ -16,4 +17,5 @@ spec:
1617
protocol: TCP
1718
name: http
1819
selector:
20+
app: {{ $.Chart.Name }}
1921
{{- include "liferay.selectorLabels" . | nindent 4 }}

templates/objectstorage/statefulset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ metadata:
159159
spec:
160160
selector:
161161
app: {{ $.Chart.Name }}-objectstorage
162-
{{- include "liferay.labels" $ | nindent 4 }}
162+
{{- include "liferay.selectorLabels" $ | nindent 4 }}
163163
ports:
164164
- name: api
165165
port: {{ .config.ports.api }}
@@ -182,7 +182,7 @@ spec:
182182
clusterIP: None # This is what makes it headless
183183
selector:
184184
app: {{ $.Chart.Name }}-objectstorage
185-
{{- include "liferay.labels" $ | nindent 4 }}
185+
{{- include "liferay.selectorLabels" $ | nindent 4 }}
186186
ports:
187187
- name: api
188188
port: {{ .config.ports.api }}

templates/search/statefulset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ metadata:
152152
spec:
153153
selector:
154154
app: {{ $.Chart.Name }}-search
155-
{{- include "liferay.labels" $ | nindent 4 }}
155+
{{- include "liferay.selectorLabels" $ | nindent 4 }}
156156
ports:
157157
- name: search
158158
port: {{ .config.port }}
@@ -171,7 +171,7 @@ spec:
171171
clusterIP: None # This is what makes it headless
172172
selector:
173173
app: {{ $.Chart.Name }}-search
174-
{{- include "liferay.labels" $ | nindent 4 }}
174+
{{- include "liferay.selectorLabels" $ | nindent 4 }}
175175
ports:
176176
- name: search
177177
port: {{ .config.port }}

templates/service.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: Service
33
metadata:
44
name: {{ include "liferay.fullname" . }}
55
labels:
6+
app: {{ $.Chart.Name }}
67
{{- include "liferay.labels" . | nindent 4 }}
78
{{- with .Values.service.annotations }}
89
annotations:
@@ -15,4 +16,6 @@ spec:
1516
targetPort: http
1617
protocol: TCP
1718
name: http
18-
selector: {{- include "liferay.selectorLabels" . | nindent 4 }}
19+
selector:
20+
app: {{ $.Chart.Name }}
21+
{{- include "liferay.selectorLabels" . | nindent 4 }}

templates/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ kind: StatefulSet
33
metadata:
44
name: {{ include "liferay.fullname" . }}
55
labels:
6+
app: {{ $.Chart.Name }}
67
{{- include "liferay.labels" . | nindent 4 }}
78
spec:
89
{{- if not .Values.autoscaling.enabled }}
910
replicas: {{ .Values.replicaCount }}
1011
{{- end }}
1112
selector:
1213
matchLabels:
14+
app: {{ $.Chart.Name }}
1315
{{- include "liferay.selectorLabels" . | nindent 6 }}
1416
serviceName: {{ include "liferay.fullname" . }}
1517
template:
@@ -19,6 +21,7 @@ spec:
1921
{{- toYaml . | nindent 8 }}
2022
{{- end }}
2123
labels:
24+
app: {{ $.Chart.Name }}
2225
{{- include "liferay.labels" . | nindent 8 }}
2326
{{- with .Values.podLabels }}
2427
{{- toYaml . | nindent 8 }}

0 commit comments

Comments
 (0)