From 4ba5f0b29ec3c721dfc98e185cdd3f3cdbd0371c Mon Sep 17 00:00:00 2001 From: HJK181 Date: Thu, 7 Sep 2023 15:33:26 +0200 Subject: [PATCH] Add support for additinal service labels --- charts/centrifugo/templates/service-grpc-api.yaml | 3 +++ charts/centrifugo/templates/service-internal.yaml | 3 +++ charts/centrifugo/templates/service-uni-grpc.yaml | 3 +++ charts/centrifugo/templates/service.yaml | 3 +++ charts/centrifugo/values.yaml | 6 ++++++ 5 files changed, 18 insertions(+) diff --git a/charts/centrifugo/templates/service-grpc-api.yaml b/charts/centrifugo/templates/service-grpc-api.yaml index 1709e94..df2ccb2 100644 --- a/charts/centrifugo/templates/service-grpc-api.yaml +++ b/charts/centrifugo/templates/service-grpc-api.yaml @@ -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 }} diff --git a/charts/centrifugo/templates/service-internal.yaml b/charts/centrifugo/templates/service-internal.yaml index 22a0a87..062f085 100644 --- a/charts/centrifugo/templates/service-internal.yaml +++ b/charts/centrifugo/templates/service-internal.yaml @@ -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 }} diff --git a/charts/centrifugo/templates/service-uni-grpc.yaml b/charts/centrifugo/templates/service-uni-grpc.yaml index ffc5e15..5a1b50a 100644 --- a/charts/centrifugo/templates/service-uni-grpc.yaml +++ b/charts/centrifugo/templates/service-uni-grpc.yaml @@ -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 }} diff --git a/charts/centrifugo/templates/service.yaml b/charts/centrifugo/templates/service.yaml index 188e1eb..39f5b0d 100644 --- a/charts/centrifugo/templates/service.yaml +++ b/charts/centrifugo/templates/service.yaml @@ -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 }} diff --git a/charts/centrifugo/values.yaml b/charts/centrifugo/values.yaml index b9eff55..d790743 100644 --- a/charts/centrifugo/values.yaml +++ b/charts/centrifugo/values.yaml @@ -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: "" @@ -58,6 +61,7 @@ internalService: # prometheus.io/path: "/metrics" # prometheus.io/port: "9000" ## Specify custom appProtocol for a service port. + labels: {} appProtocol: "" grpcService: @@ -68,6 +72,7 @@ grpcService: # nodePort: 30102 annotations: {} ## Specify custom appProtocol for a service port. + labels: {} appProtocol: "" uniGrpcService: @@ -78,6 +83,7 @@ uniGrpcService: # nodePort: 30103 annotations: {} ## Specify custom appProtocol for a service port. + labels: {} appProtocol: "" ingress: