Skip to content

Commit

Permalink
Update tyk-stack chart
Browse files Browse the repository at this point in the history
  • Loading branch information
komalsukhani committed Dec 17, 2024
1 parent dd5c6b1 commit c4a9014
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tyk-stack/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
Thank you for installing Tyk Stack Chart. Your release is named {{ .Release.Name }}.

NOTE:
{{- $tykApiPort := include "tyk-stack.gwServicePort" . -}}
{{- if index .Values "tyk-dashboard" "dashboard" "tykApiHost" }}
Tyk Dashboard connects to Tyk Gateway at {{ index .Values "tyk-dashboard" "dashboard" "tykApiHost" }} over port {{ $tykApiPort }} for key management functions.
{{- else }}
Tyk Dashboard connects to Tyk Gateway at {{ (include "tyk-dashboard.gw_proto" (index .Subcharts "tyk-dashboard")) }}://{{ (include "tyk-dashboard.gateway_host" (index .Subcharts "tyk-dashboard")) }} over port {{ $tykApiPort }} for key management functions.
{{- end }}
{{ $tykApiPort := (include "tyk-dashboard.tykApiPort" (index .Subcharts "tyk-dashboard")) -}}
Tyk Dashboard connects to Tyk Gateway at {{ (include "tyk-dashboard.tykApiHost" (index .Subcharts "tyk-dashboard")) }} over port {{ $tykApiPort }} for key management functions.
Please double check if Tyk Gateway runs on this address. If not, Tyk Gateway host and Tyk Gateway port can be overridden
through .tyk-dashboard.dashboard.tykApiHost and .global.servicePorts.gateway fields respectively in values.yaml.
through .tyk-dashboard.dashboard.tykApiHost and .tyk-dashboard.dashboard.tykApiPort fields respectively in values.yaml.

{{ if index .Values "tyk-gateway" "gateway" "control" "enabled" }}
{{- $gwSvcName := printf "gateway-control-svc-%v" (include "tyk-gateway.fullname" (index .Subcharts "tyk-gateway")) -}}
Expand Down
4 changes: 4 additions & 0 deletions tyk-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,10 @@ tyk-dashboard:
# - If you are using tyk-dashboard chart, you need to set the correct Gateway URL here too.
# The URL needs to be formatted as: http://gateway_host
tykApiHost: ""
# The port gateway is running on.
# If you are using control port for gateway, set the value to control port.
# It is used to set TYK_DB_TYKAPI_PORT
# tykApiPort: 9696
# enableOwnership specifies if API Ownership for Self-Managed installations is enabled or not.
# It is used to set TYK_DB_ENABLEOWNERSHIP
enableOwnership: true
Expand Down

0 comments on commit c4a9014

Please sign in to comment.