-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat(leo): Add Leo definition #127
Conversation
Marking this as a draft until Leo will not be available under |
LEO_SERVICE_HOST: "{{ .Release.Name }}-leo" | ||
LEO_SERVICE_PORT: "{{ .Values.studioLeo.service.port }}" | ||
LEO_ENCODING: "utf-8" | ||
LEO_API_PATH_PREFIX: "{{- if and .Values.global.basePath (not (eq .Values.global.basePath "/")) }}{{ include "studio.basePath" . }}/{{- end }}leo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dacbd Kindly ask you to check if the configuration is valid 😃 especially LEO_API_PATH_PREFIX
- I configure it for support custom basePath
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks right to me, but the question is, where do we set the base path for the LEO server itself? cc @dacbd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I'm not even sure that LEO needs to worry about base path since it's not publicly exposed, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jesper7 is correct, the leo api is internal only, so while the API was built to be able to have some prefix we don't need to set anything. I would leave it empty for leo to use its default.
LEO_SERVICE_HOST: "{{ .Release.Name }}-leo" | ||
LEO_SERVICE_PORT: "{{ .Values.studioLeo.service.port }}" | ||
LEO_ENCODING: "utf-8" | ||
LEO_API_PATH_PREFIX: "{{- if and .Values.global.basePath (not (eq .Values.global.basePath "/")) }}{{ include "studio.basePath" . }}/{{- end }}leo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks right to me, but the question is, where do we set the base path for the LEO server itself? cc @dacbd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks plausible to me
d279db4
to
c8dd482
Compare
95e72c5
to
29d294f
Compare
Fixes https://github.com/iterative/itops/issues/1773