Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename ingress.protocol to ingress.scheme in _helpers.tpl #202

Open
0x2b3bfa0 opened this issue Sep 20, 2023 · 2 comments
Open

Rename ingress.protocol to ingress.scheme in _helpers.tpl #202

0x2b3bfa0 opened this issue Sep 20, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@0x2b3bfa0
Copy link
Member

{{- define "ingress.protocol" -}}
http{{- if $.Values.global.ingress.tlsEnabled }}s{{- end}}
{{- end }}

@0x2b3bfa0 0x2b3bfa0 added the enhancement New feature or request label Sep 20, 2023
@0x2b3bfa0
Copy link
Member Author

0x2b3bfa0 commented Sep 20, 2023

@mjasion, would it be possible to use relative paths for all the hardcoded URLs that use the template above? E.g.

API_URL: "{{include "ingress.protocol" . }}://{{.Values.global.host }}{{- if and .Values.global.basePath (not (eq .Values.global.basePath "/")) }}/{{ include "studio.basePath" . }}{{- end }}/api"

- {{include "ingress.protocol" . }}://{{.Values.global.host }}{{- if and .Values.global.basePath (not (eq .Values.global.basePath "/")) }}/{{ include "studio.basePath" . }}{{- end }}/api
+ /api

It's probably not viable for webhooks, but yes for API_URL and UI_URL among others.

@mjasion
Copy link
Contributor

mjasion commented Sep 21, 2023

@0x2b3bfa0 I think not now. We need to change the code of webapi and webui AFAIK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants