Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Fix setting of policy path environment variable (#287)
Browse files Browse the repository at this point in the history
* Set policy path outside pump condition

* Fix unit tests

* Fix one more unit test
  • Loading branch information
komalsukhani authored Jul 18, 2023
1 parent 5891a2e commit 7894e4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tyk-headless/templates/deployment-gw-repset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ spec:
key: APISecret
- name: TYK_GW_HTTPSERVEROPTIONS_USESSL
value: "{{ .Values.gateway.tls }}"
- name: TYK_GW_POLICIES_POLICYPATH
value: "/mnt/tyk-gateway/policies"
{{- if .Values.pump.enabled }}
- name: TYK_GW_ENABLEANALYTICS
value: "true"
- name: TYK_GW_POLICIES_POLICYPATH
value: "/mnt/tyk-gateway/policies"
{{- end }}
{{- if .Values.gateway.extraEnvs }}
{{- include "tyk-headless.tplvalues.render" ( dict "value" .Values.gateway.extraEnvs "context" $ ) | nindent 10 }}
Expand Down
4 changes: 4 additions & 0 deletions tyk-headless/tests/deployment-gw-repset_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ tests:
key: APISecret
- name: TYK_GW_HTTPSERVEROPTIONS_USESSL
value: "false"
- name: TYK_GW_POLICIES_POLICYPATH
value: "/mnt/tyk-gateway/policies"
command: ["/opt/tyk-gateway/tyk", "--conf=/etc/tyk-gateway/tyk.conf"]
workingDir: /opt/tyk-gateway
ports:
Expand Down Expand Up @@ -252,6 +254,8 @@ tests:
key: APISecret
- name: TYK_GW_HTTPSERVEROPTIONS_USESSL
value: "true"
- name: TYK_GW_POLICIES_POLICYPATH
value: "/mnt/tyk-gateway/policies"
command: ["/opt/tyk-gateway/tyk", "--conf=/etc/tyk-gateway/tyk.conf"]
workingDir: /opt/tyk-gateway
ports:
Expand Down

0 comments on commit 7894e4d

Please sign in to comment.