Skip to content

Commit

Permalink
Merge pull request #46 from rotty3000/main
Browse files Browse the repository at this point in the history
main
  • Loading branch information
rotty3000 authored Feb 7, 2025
2 parents ba705e8 + 5e9f373 commit d44a830
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions templates/database/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ metadata:
spec:
selector:
app: {{ $.Chart.Name }}-database
{{- include "liferay.labels" $ | nindent 4 }}
{{- include "liferay.selectorLabels" $ | nindent 4 }}
ports:
- name: database
port: {{ .config.port }}
Expand All @@ -120,7 +120,7 @@ spec:
clusterIP: None # This is what makes it headless
selector:
app: {{ $.Chart.Name }}-database
{{- include "liferay.labels" $ | nindent 4 }}
{{- include "liferay.selectorLabels" $ | nindent 4 }}
ports:
- name: database
port: {{ .config.port }}
Expand Down
2 changes: 2 additions & 0 deletions templates/headless-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Service
metadata:
name: {{ include "liferay.fullname" . }}-headless
labels:
app: {{ $.Chart.Name }}
{{- include "liferay.labels" . | nindent 4 }}
spec:
clusterIP: None # This is what makes it headless
Expand All @@ -16,4 +17,5 @@ spec:
protocol: TCP
name: http
selector:
app: {{ $.Chart.Name }}
{{- include "liferay.selectorLabels" . | nindent 4 }}
4 changes: 2 additions & 2 deletions templates/objectstorage/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ metadata:
spec:
selector:
app: {{ $.Chart.Name }}-objectstorage
{{- include "liferay.labels" $ | nindent 4 }}
{{- include "liferay.selectorLabels" $ | nindent 4 }}
ports:
- name: api
port: {{ .config.ports.api }}
Expand All @@ -182,7 +182,7 @@ spec:
clusterIP: None # This is what makes it headless
selector:
app: {{ $.Chart.Name }}-objectstorage
{{- include "liferay.labels" $ | nindent 4 }}
{{- include "liferay.selectorLabels" $ | nindent 4 }}
ports:
- name: api
port: {{ .config.ports.api }}
Expand Down
4 changes: 2 additions & 2 deletions templates/search/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ metadata:
spec:
selector:
app: {{ $.Chart.Name }}-search
{{- include "liferay.labels" $ | nindent 4 }}
{{- include "liferay.selectorLabels" $ | nindent 4 }}
ports:
- name: search
port: {{ .config.port }}
Expand All @@ -171,7 +171,7 @@ spec:
clusterIP: None # This is what makes it headless
selector:
app: {{ $.Chart.Name }}-search
{{- include "liferay.labels" $ | nindent 4 }}
{{- include "liferay.selectorLabels" $ | nindent 4 }}
ports:
- name: search
port: {{ .config.port }}
Expand Down
5 changes: 4 additions & 1 deletion templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Service
metadata:
name: {{ include "liferay.fullname" . }}
labels:
app: {{ $.Chart.Name }}
{{- include "liferay.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
Expand All @@ -15,4 +16,6 @@ spec:
targetPort: http
protocol: TCP
name: http
selector: {{- include "liferay.selectorLabels" . | nindent 4 }}
selector:
app: {{ $.Chart.Name }}
{{- include "liferay.selectorLabels" . | nindent 4 }}
3 changes: 3 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ kind: StatefulSet
metadata:
name: {{ include "liferay.fullname" . }}
labels:
app: {{ $.Chart.Name }}
{{- include "liferay.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
app: {{ $.Chart.Name }}
{{- include "liferay.selectorLabels" . | nindent 6 }}
serviceName: {{ include "liferay.fullname" . }}
template:
Expand All @@ -19,6 +21,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
app: {{ $.Chart.Name }}
{{- include "liferay.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit d44a830

Please sign in to comment.