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

Fix ephemeral storage #2

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Fix ephemeral storage #2

wants to merge 2 commits into from

Conversation

Silvest89
Copy link
Collaborator

Based on the docker-build branch

apiv1.ResourceStorage: *resource.NewQuantity(int64(typeInfo.Disk*1024*1024*1024), resource.DecimalSI),
apiv1.ResourceEphemeralStorage: *resource.NewQuantity(int64(typeInfo.Disk*1024*1024*1024), resource.DecimalSI),

Choose a reason for hiding this comment

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

Hey, saw your PR on the upstream autoscaler repo.

The documentation for apiv1.ResourceStorage & apiv1.ResourceStorage is not very clear on this. I think we never should have advertised apiv1.ResourceStorage.
As far as I understood it, apiv1.ResourceStorage is related to the PersistentVolumes that can be attached. ResourceEphemeralStorage is the local disk of the VM, so that one should equal typeInfo.Disk*1024*1024*1024.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@apricote Yeah I wanted to test it for our users first :P Since we push an image to GHCR before we open a PR.

It fixed it so I will open a pr and remove apiv1.ResourceStorage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants