From 766f7b17dc7d77bed34506839bd3d4e51699aed7 Mon Sep 17 00:00:00 2001 From: HJK181 Date: Thu, 7 Sep 2023 20:06:13 +0200 Subject: [PATCH] Add support for additinal service labels (#71) --- charts/centrifugo/Chart.yaml | 2 +- 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 ++++++ 6 files changed, 19 insertions(+), 1 deletion(-) diff --git a/charts/centrifugo/Chart.yaml b/charts/centrifugo/Chart.yaml index a858d30..0a85667 100644 --- a/charts/centrifugo/Chart.yaml +++ b/charts/centrifugo/Chart.yaml @@ -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 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: