Skip to content

Commit

Permalink
Merge pull request #6574 from kube-hetzner/hetzner-ephemeral-storage
Browse files Browse the repository at this point in the history
[Hetzner] Fix missing ephemeral storage definition
  • Loading branch information
k8s-ci-robot committed Mar 4, 2024
2 parents 79269d8 + 3bf0226 commit 1debfbf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,10 @@ func getMachineTypeResourceList(m *hetznerManager, instanceType string) (apiv1.R

return apiv1.ResourceList{
// TODO somehow determine the actual pods that will be running
apiv1.ResourcePods: *resource.NewQuantity(defaultPodAmountsLimit, resource.DecimalSI),
apiv1.ResourceCPU: *resource.NewQuantity(int64(typeInfo.Cores), resource.DecimalSI),
apiv1.ResourceMemory: *resource.NewQuantity(int64(typeInfo.Memory*1024*1024*1024), resource.DecimalSI),
apiv1.ResourceStorage: *resource.NewQuantity(int64(typeInfo.Disk*1024*1024*1024), resource.DecimalSI),
apiv1.ResourcePods: *resource.NewQuantity(defaultPodAmountsLimit, resource.DecimalSI),
apiv1.ResourceCPU: *resource.NewQuantity(int64(typeInfo.Cores), resource.DecimalSI),
apiv1.ResourceMemory: *resource.NewQuantity(int64(typeInfo.Memory*1024*1024*1024), resource.DecimalSI),
apiv1.ResourceEphemeralStorage: *resource.NewQuantity(int64(typeInfo.Disk*1024*1024*1024), resource.DecimalSI),
}, nil
}

Expand Down

0 comments on commit 1debfbf

Please sign in to comment.