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

[Feature]: New tasks should adopt the configured cfProcessDefaults #1197

Closed
gcapizzi opened this issue Jun 7, 2022 · 0 comments
Closed

[Feature]: New tasks should adopt the configured cfProcessDefaults #1197

gcapizzi opened this issue Jun 7, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@gcapizzi
Copy link
Contributor

gcapizzi commented Jun 7, 2022

Background

As a developer
I want to run tasks
So that I can execute one-off workloads

Acceptance Criteria

  • WHEN I create a task via the Kubernetes API
    THEN I I see the task pod has resource limits and requests matching the cfProcessDefaults in our configuration:

    • spec.containers[].resources.limits.memory and spec.containers[].resources.requests.memory should match cfProcessDefaults.memoryMB
    • spec.containers[].resources.limits.ephemeral-storage and spec.containers[].resources.requests.ephemeral-storage should match cfProcessDefaults.diskMB

    AND I see the following fields in the task status:

    • memoryMB matching cfProcessDefaults.memoryMB
    • diskQuotaMB matching cfProcessDefaults.diskMB
  • WHEN I create a task via the Korifi API shim
    THEN I I see all of the above
    AND I see the following fields in the response:

    • memory_in_mb matching cfProcessDefaults.memoryMB
    • disk_in_mb matching cfProcessDefaults.diskMB

Dev Notes

@gcapizzi gcapizzi added the Tasks label Jun 7, 2022
georgethebeatle added a commit that referenced this issue Jun 14, 2022
georgethebeatle added a commit that referenced this issue Jun 14, 2022
georgethebeatle added a commit that referenced this issue Jun 15, 2022
danail-branekov added a commit to cloudfoundry/eirini-controller that referenced this issue Jun 15, 2022
danail-branekov added a commit that referenced this issue Jun 15, 2022
This version propagates the disk/memory constraints to the pod template
of the cf task job as limits/requests

Issue: #1197

Co-authored-by: Georgi Sabev <[email protected]>
danail-branekov added a commit that referenced this issue Jun 15, 2022
This version propagates the disk/memory constraints to the pod template
of the cf task job as limits/requests

Issue: #1197

Co-authored-by: Georgi Sabev <[email protected]>
@gcapizzi gcapizzi added this to the v0.2 milestone Jul 14, 2022
@gcapizzi gcapizzi moved this to ✅ Done in Korifi - Backlog Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants