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

feat(leo): Add Leo definition #127

Merged
merged 9 commits into from
Aug 23, 2023
Merged

feat(leo): Add Leo definition #127

merged 9 commits into from
Aug 23, 2023

Conversation

mjasion
Copy link
Contributor

@mjasion mjasion commented Jul 19, 2023

@mjasion mjasion self-assigned this Jul 19, 2023
@mjasion mjasion marked this pull request as draft July 19, 2023 18:02
@mjasion
Copy link
Contributor Author

mjasion commented Jul 19, 2023

Marking this as a draft until Leo will not be available under docker.iterative.ai https://github.com/iterative/itops/issues/1988

@mjasion mjasion requested review from jesper7 and 0x2b3bfa0 August 10, 2023 19:18
@mjasion mjasion marked this pull request as ready for review August 10, 2023 19:18
@mjasion mjasion requested a review from dacbd August 10, 2023 19:21
Comment on lines 11 to 13
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"
Copy link
Contributor Author

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

Copy link
Contributor

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

Copy link
Contributor

@jesper7 jesper7 Aug 18, 2023

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?

Copy link
Contributor

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.

Comment on lines 11 to 13
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"
Copy link
Contributor

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

charts/studio/values.yaml Show resolved Hide resolved
Copy link
Member

@0x2b3bfa0 0x2b3bfa0 left a 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

@iterative iterative deleted a comment from dacbd Aug 23, 2023
@mjasion mjasion force-pushed the add_leo branch 2 times, most recently from d279db4 to c8dd482 Compare August 23, 2023 10:07
@mjasion mjasion enabled auto-merge August 23, 2023 10:07
@0x2b3bfa0
Copy link
Member

@mjasion, tests are failing because #164, as usual.

@mjasion mjasion force-pushed the add_leo branch 2 times, most recently from 95e72c5 to 29d294f Compare August 23, 2023 12:24
@mjasion mjasion requested review from dacbd and removed request for dacbd August 23, 2023 12:35
@mjasion mjasion disabled auto-merge August 23, 2023 12:36
@mjasion mjasion enabled auto-merge August 23, 2023 12:36
@mjasion mjasion added this pull request to the merge queue Aug 23, 2023
Merged via the queue into main with commit 5e6afd9 Aug 23, 2023
@mjasion mjasion deleted the add_leo branch August 23, 2023 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants