Skip to content

Commit

Permalink
fix: correctly call sshTokenEndpoint from values
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed Apr 11, 2024
1 parent 6c1c42b commit 675660a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions charts/lagoon-core/ci/linter-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ lagoonUIURL: http://ui:9101
lagoonWebhookURL: http://webhook:11213
defaultIngressClassName: nginx

sshTokenEndpoint: ssh-token.example.com

# used in ui
# lagoonAPIURL: https://api.example.com/graphql
# keycloakFrontEndURL: https://keycloak.example.com
Expand Down
6 changes: 3 additions & 3 deletions charts/lagoon-core/templates/api.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ spec:
- name: REDIS_HOST
value: {{ include "lagoon-core.apiRedis.fullname" . }}
- name: SSH_TOKEN_ENDPOINT
value: {{ .Values.sshTokenExchangeEndpoint | quote }}
value: {{ .Values.sshTokenEndpoint | quote }}
- name: SSH_TOKEN_ENDPOINT_PORT
{{- if .Values.sshToken.enabled -}}
value: {{ .Values.sshToken.service.ports.sshserver | quote}}
{{- if .Values.sshToken.enabled }}
value: {{ .Values.sshToken.service.ports.sshserver | quote }}
{{- else }}
value: {{ .Values.ssh.service.port | quote }}
{{- end }}
Expand Down

0 comments on commit 675660a

Please sign in to comment.