From 214b8d0b845086230d68b0c1118ee4e8ad0d0f64 Mon Sep 17 00:00:00 2001 From: Long Le Date: Mon, 4 Nov 2024 08:01:14 -0500 Subject: [PATCH] updated the helm chart to account for log system events (#333) Co-authored-by: Long Le Co-authored-by: Komal Sukhani --- .../tyk-gateway/templates/deployment-gw-repset.yaml | 6 ++++++ components/tyk-gateway/values.yaml | 8 +++++++- tyk-control-plane/values.yaml | 7 +++++++ tyk-data-plane/values.yaml | 7 +++++++ tyk-oss/values.yaml | 7 +++++++ tyk-stack/values.yaml | 7 +++++++ 6 files changed, 41 insertions(+), 1 deletion(-) diff --git a/components/tyk-gateway/templates/deployment-gw-repset.yaml b/components/tyk-gateway/templates/deployment-gw-repset.yaml index f089c278..2a2dc8c3 100644 --- a/components/tyk-gateway/templates/deployment-gw-repset.yaml +++ b/components/tyk-gateway/templates/deployment-gw-repset.yaml @@ -130,6 +130,12 @@ spec: - name: TYK_GW_HTTPSERVEROPTIONS_ENABLESTRICTROUTES value: "{{ .Values.gateway.enableStrictRoutes }}" + # Log system events configuration + - name: TYK_GW_LOGFORMAT + value: "{{ .Values.gateway.log.format }}" + - name: TYK_GW_LOGLEVEL + value: "{{ .Values.gateway.log.level }}" + {{- if .Values.global.redis.sslInsecureSkipVerify }} - name: TYK_GW_STORAGE_SSLINSECURESKIPVERIFY value: "{{ .Values.global.redis.sslInsecureSkipVerify }}" diff --git a/components/tyk-gateway/values.yaml b/components/tyk-gateway/values.yaml index 90f9daba..3ee820b7 100644 --- a/components/tyk-gateway/values.yaml +++ b/components/tyk-gateway/values.yaml @@ -501,6 +501,13 @@ gateway: # all the subsequent work that operation causes parentBased: false + # log is used to configure the log system events + log: + # level is used to set the log verbosity. It is used to set TYK_GW_LOGLEVEL + level: "info" + # format is used to set the log format. It is used to set TYK_GW_LOGFORMAT + format: "default" + # EnablePathPrefixMatching changes the URL matching from wildcard mode to prefix mode. # If prefix matching is enabled, the match will be performed # - as a prefix match (/json*). @@ -519,7 +526,6 @@ gateway: # Regular expressions and parameterized routes will be left alone regardless of this setting. enableStrictRoutes: true - # serviceAccountName field indicates the name of the Service Account that is going to be used by the Pods. # If a service account is to be used for Tyk Gateway, it should be manually created serviceAccountName: "" diff --git a/tyk-control-plane/values.yaml b/tyk-control-plane/values.yaml index b2257409..1768a096 100644 --- a/tyk-control-plane/values.yaml +++ b/tyk-control-plane/values.yaml @@ -569,6 +569,13 @@ tyk-gateway: # podLabels specifies labels to be added in gateway Pod podLabels: {} + # log is used to configure the log system events + log: + # level is used to set the log verbosity. It is used to set TYK_GW_LOGLEVEL + level: "info" + # format is used to set the log format. It is used to set TYK_GW_LOGFORMAT + format: "default" + tyk-operator: nameOverride: "" fullnameOverride: "" diff --git a/tyk-data-plane/values.yaml b/tyk-data-plane/values.yaml index 4de93010..6831af21 100644 --- a/tyk-data-plane/values.yaml +++ b/tyk-data-plane/values.yaml @@ -508,6 +508,13 @@ tyk-gateway: # readOnly: true extraVolumeMounts: [] + # log is used to configure the log system events + log: + # level is used to set the log verbosity. It is used to set TYK_GW_LOGLEVEL + level: "info" + # format is used to set the log format. It is used to set TYK_GW_LOGFORMAT + format: "default" + tyk-pump: ## Default values for tyk-pump chart. ## This is a YAML-formatted file. diff --git a/tyk-oss/values.yaml b/tyk-oss/values.yaml index 934399b2..b031ea00 100644 --- a/tyk-oss/values.yaml +++ b/tyk-oss/values.yaml @@ -480,6 +480,13 @@ tyk-gateway: # readOnly: true extraVolumeMounts: [] + # log is used to configure the log system events + log: + # level is used to set the log verbosity. It is used to set TYK_GW_LOGLEVEL + level: "info" + # format is used to set the log format. It is used to set TYK_GW_LOGFORMAT + format: "default" + tyk-operator: nameOverride: "" fullnameOverride: "" diff --git a/tyk-stack/values.yaml b/tyk-stack/values.yaml index fc9beeb6..6bf25282 100644 --- a/tyk-stack/values.yaml +++ b/tyk-stack/values.yaml @@ -567,6 +567,13 @@ tyk-gateway: # readOnly: true extraVolumeMounts: [] + # log is used to configure the log system events + log: + # level is used to set the log verbosity. It is used to set TYK_GW_LOGLEVEL + level: "info" + # format is used to set the log format. It is used to set TYK_GW_LOGFORMAT + format: "default" + tyk-operator: nameOverride: "" fullnameOverride: ""