Skip to content

Commit

Permalink
Add support for additinal service labels (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
HJK181 authored Sep 7, 2023
1 parent 56f21f9 commit 766f7b1
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/centrifugo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: centrifugo
description: Centrifugo is a scalable real-time messaging server in language-agnostic way
version: 11.0.4
version: 11.0.5
appVersion: 5.0.3
home: https://centrifugal.dev
icon: https://centrifugal.dev/img/favicon.png
Expand Down
3 changes: 3 additions & 0 deletions charts/centrifugo/templates/service-grpc-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
namespace: {{ include "centrifugo.namespace" . }}
labels:
{{- include "centrifugo.labels" . | nindent 4 }}
{{- with .Values.grpcService.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.grpcService.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/centrifugo/templates/service-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
namespace: {{ include "centrifugo.namespace" . }}
labels:
{{- include "centrifugo.labels" . | nindent 4 }}
{{- with .Values.internalService.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.internalService.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/centrifugo/templates/service-uni-grpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
namespace: {{ include "centrifugo.namespace" . }}
labels:
{{- include "centrifugo.labels" . | nindent 4 }}
{{- with .Values.uniGrpcService.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.uniGrpcService.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/centrifugo/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
namespace: {{ include "centrifugo.namespace" . }}
labels:
{{- include "centrifugo.labels" . | nindent 4 }}
{{- with .Values.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/centrifugo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ service:
## Provide any additional annotations which may be required
##
annotations: {}
## Provide any additional labels which may be required
##
labels: {}
##
## Specify custom appProtocol for a service port.
appProtocol: ""
Expand All @@ -58,6 +61,7 @@ internalService:
# prometheus.io/path: "/metrics"
# prometheus.io/port: "9000"
## Specify custom appProtocol for a service port.
labels: {}
appProtocol: ""

grpcService:
Expand All @@ -68,6 +72,7 @@ grpcService:
# nodePort: 30102
annotations: {}
## Specify custom appProtocol for a service port.
labels: {}
appProtocol: ""

uniGrpcService:
Expand All @@ -78,6 +83,7 @@ uniGrpcService:
# nodePort: 30103
annotations: {}
## Specify custom appProtocol for a service port.
labels: {}
appProtocol: ""

ingress:
Expand Down

0 comments on commit 766f7b1

Please sign in to comment.