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

Commit 5e9f373

Browse files
author
Raymond Augé
committed
use selectorLabels appropriately
1 parent 40fb8a7 commit 5e9f373

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
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/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 }}

0 commit comments

Comments
 (0)