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

chore: resources in separate yaml #903

Closed
wants to merge 1 commit into from

Conversation

ThibaultFy
Copy link
Member

@ThibaultFy ThibaultFy commented May 2, 2024

Description

part of FL-1562

How has this been tested?

Resources are tested by being injected in org-1 with skaffold

Checklist

  • changelog was updated with notable changes
  • documentation was updated

Copy link

linear bot commented May 2, 2024

@ThibaultFy ThibaultFy marked this pull request as ready for review May 2, 2024 15:08
@ThibaultFy ThibaultFy requested a review from a team as a code owner May 2, 2024 15:08
Comment on lines 58 to 61
try:
requests = resources_dict["requests"]
except KeyError:
requests = None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
try:
requests = resources_dict["requests"]
except KeyError:
requests = None
requests = resources_dict.get("requests", None)

Comment on lines 63 to 66
try:
limits = resources_dict["limits"]
except KeyError:
limits = None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
try:
limits = resources_dict["limits"]
except KeyError:
limits = None
limits = resources_dict.get("limits", None)

@@ -28,6 +28,7 @@ deploy:
chartPath: charts/substra-backend
valuesFiles:
- examples/values/backend-org-1.yaml
- charts/substra-backend/resources.yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure I am following. Is it not prod values that are in the resources.yaml file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The values are the ones that we currently apply by default. It is up to us to decide if we put prod values (so with highest requests) or if we want to keep these low requests. Also, il was to test that it was working as expected. We can also completely remove it from skaffold but I don't know how to ensure that this file stay up to date with CI

Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
@ThibaultFy
Copy link
Member Author

close in favor of #907

@ThibaultFy ThibaultFy closed this May 21, 2024
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.

None yet

3 participants