Skip to content

Commit

Permalink
Add support for additinal service labels
Browse files Browse the repository at this point in the history
  • Loading branch information
HJK181 committed Sep 7, 2023
1 parent 56f21f9 commit 4ba5f0b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
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 4ba5f0b

Please sign in to comment.