From 7974e3b8baf929709bf3b9f4c34b6c83f59cb287 Mon Sep 17 00:00:00 2001 From: Kirill Klinchenkov Date: Thu, 12 Sep 2024 04:37:51 +0300 Subject: [PATCH] add extraArgs to values --- charts/centrifugo/Chart.yaml | 2 +- charts/centrifugo/templates/deployment.yaml | 5 ++++- charts/centrifugo/values.yaml | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/centrifugo/Chart.yaml b/charts/centrifugo/Chart.yaml index ea0e9a0..21491cb 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.8.5 +version: 11.8.6 appVersion: 5.4.5 home: https://centrifugal.dev icon: https://centrifugal.dev/img/favicon.png diff --git a/charts/centrifugo/templates/deployment.yaml b/charts/centrifugo/templates/deployment.yaml index e0f7130..9b4a2ce 100644 --- a/charts/centrifugo/templates/deployment.yaml +++ b/charts/centrifugo/templates/deployment.yaml @@ -82,6 +82,9 @@ spec: - "{{ .Values.grpcService.port }}" - --uni_grpc_port - "{{ .Values.uniGrpcService.port }}" + {{- range .Values.extraArgs }} + - {{ . | quote }} + {{- end }} env: - name: CENTRIFUGO_ADMIN_PASSWORD valueFrom: @@ -150,7 +153,7 @@ spec: {{- range .Values.envSecret }} - name: {{ .name }} valueFrom: - secretKeyRef: + secretKeyRef: {{- tpl (toYaml .secretKeyRef) $ | nindent 18 }} {{- end }} {{- range $key, $value := .Values.env }} diff --git a/charts/centrifugo/values.yaml b/charts/centrifugo/values.yaml index 5a78b1a..28a0900 100644 --- a/charts/centrifugo/values.yaml +++ b/charts/centrifugo/values.yaml @@ -24,6 +24,9 @@ priorityClassName: "" # Annotations to be added to the deployment annotations: {} +extraArgs: [] + # - --config /centrifugo/myconfig.json + service: ## Service type ##