From a4c22cae174de147f8735c76675e2e9b4c3fb7af Mon Sep 17 00:00:00 2001 From: tiptophelmet Date: Wed, 13 Mar 2024 23:27:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Add=20timezone=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/configStructs/tapConfig.go | 1 + helm-chart/templates/06-front-deployment.yaml | 2 ++ helm-chart/templates/12-config-map.yaml | 1 + 3 files changed, 4 insertions(+) diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 565d25c54..e60b2fbbf 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -182,6 +182,7 @@ type TapConfig struct { TrafficSampleRate int `yaml:"trafficSampleRate" json:"trafficSampleRate" default:"100"` TcpStreamChannelTimeoutMs int `yaml:"tcpStreamChannelTimeoutMs" json:"tcpStreamChannelTimeoutMs" default:"10000"` Misc MiscConfig `yaml:"misc" json:"misc"` + Timezone string `yaml:"timezone" json:"timezone"` } func (config *TapConfig) PodRegex() *regexp.Regexp { diff --git a/helm-chart/templates/06-front-deployment.yaml b/helm-chart/templates/06-front-deployment.yaml index 0dc4d5b6d..e81d07e98 100644 --- a/helm-chart/templates/06-front-deployment.yaml +++ b/helm-chart/templates/06-front-deployment.yaml @@ -32,6 +32,8 @@ spec: value: '{{ not (eq .Values.tap.auth.type "") | ternary .Values.tap.auth.type " " }}' - name: REACT_APP_AUTH_SAML_IDP_METADATA_URL value: '{{ not (eq .Values.tap.auth.saml.idpMetadataUrl "") | ternary .Values.tap.auth.saml.idpMetadataUrl " " }}' + - name: REACT_APP_TIMEZONE + value: '{{ .Values.tap.timezone }}' - name: REACT_APP_REPLAY_DISABLED value: '{{ .Values.tap.replayDisabled }}' - name: REACT_APP_SCRIPTING_DISABLED diff --git a/helm-chart/templates/12-config-map.yaml b/helm-chart/templates/12-config-map.yaml index 4f9feb6a9..0fd0dab86 100644 --- a/helm-chart/templates/12-config-map.yaml +++ b/helm-chart/templates/12-config-map.yaml @@ -28,3 +28,4 @@ data: JSON_TTL: '{{ .Values.tap.misc.jsonTTL }}' PCAP_TTL: '{{ .Values.tap.misc.pcapTTL }}' PCAP_ERROR_TTL: '{{ .Values.tap.misc.pcapErrorTTL }}' + TIMEZONE: '{{ .Values.tap.timezone }}'