Skip to content

Commit

Permalink
Merge branch 'main' into feat/TT-9703/pump-confs
Browse files Browse the repository at this point in the history
  • Loading branch information
buraksekili authored Oct 14, 2023
2 parents 58d6bcc + 9911cf1 commit 4d243fb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
11 changes: 10 additions & 1 deletion components/tyk-gateway/templates/deployment-gw-repset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,17 @@ spec:
{{- else}}
value: "file"
{{- end}}

# Set this environment variable only if either analyticsEnabled or global.components.pump is set
{{ if or .Values.gateway.analyticsEnabled ((.Values.global.components).pump) }}
- name: TYK_GW_ENABLEANALYTICS
value: "{{.Values.gateway.analyticsEnabled}}"
{{- if .Values.gateway.analyticsEnabled }}
value: "{{ .Values.gateway.analyticsEnabled }}"
{{- else }}
value: "{{ .Values.global.components.pump }}"
{{- end}}
{{- end}}

- name: TYK_GW_ANALYTICSCONFIG_TYPE
value: "{{.Values.gateway.analyticsConfigType}}"
{{- if .Values.global.remoteControlPlane.enabled }}
Expand Down
5 changes: 3 additions & 2 deletions components/tyk-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,9 @@ gateway:
## readOnly: true
extraVolumeMounts: []

# analyticsEnabled property is used to enable or disable analytics.
analyticsEnabled: "false"
# analyticsEnabled property is used to enable/disable analytics.
# If set to empty or nil, analytics will be enabled/disabled based on `global.components.pump`.
analyticsEnabled: ""

# used to decide whether to send the results back directly to Tyk without a hybrid pump
# if you want to send analytics to control plane instead of pump, change analyticsConfigType to "rpc"
Expand Down
5 changes: 3 additions & 2 deletions tyk-mdcb-data-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,9 @@ tyk-gateway:
enabled: false
tags: ""

# analyticsEnabled property is used to enable or disable analytics.
analyticsEnabled: "true"
# analyticsEnabled property is used to enable/disable analytics.
# If set to empty or nil, analytics will be enabled/disabled based on `global.components.pump`.
analyticsEnabled: ""

# used to decide whether to send the results back directly to Tyk without a hybrid pump
# if you want to send analytics to control plane instead of pump, change value to "rpc"
Expand Down
5 changes: 3 additions & 2 deletions tyk-oss/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ tyk-gateway:
# affinity for gateway pod assignment
affinity: {}

# analyticsEnabled property is used to enable or disable analytics.
analyticsEnabled: "false"
# analyticsEnabled property is used to enable/disable analytics.
# If set to empty or nil, analytics will be enabled/disabled based on `global.components.pump`.
analyticsEnabled: ""

# extraEnvs is used to set gateway env variables
# - name: TYK_GW_HTTPSERVEROPTIONS_SSLINSECURESKIPVERIFY
Expand Down
5 changes: 3 additions & 2 deletions tyk-single-dc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,9 @@ tyk-gateway:
# replicaCount specifies number of replicas to be created if kind is Deployment.
replicaCount: 1

# analyticsEnabled property is used to enable or disable analytics.
analyticsEnabled: "true"
# analyticsEnabled property is used to enable/disable analytics.
# If set to empty or nil, analytics will be enabled/disabled based on `global.components.pump`.
analyticsEnabled: ""

image:
# image repository for Tyk Gateway
Expand Down

0 comments on commit 4d243fb

Please sign in to comment.