Skip to content

Commit

Permalink
Add ephemeral storage to quotas (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
odysseu authored Mar 7, 2024
1 parent c11ce12 commit 4e5f6bd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@Schema(
description =
"In the namespace en suivant les notations kubernetes https://kubernetes.io/docs/concepts/policy/resource-quotas/ . Si laissé vide pas de changement stays untouched")
"Resource quotas are a tool for administrators to address the fair sharing of cluster resources between namespaces https://kubernetes.io/docs/concepts/policy/resource-quotas/")
public class Quota {

@JsonProperty("requests.memory")
Expand Down Expand Up @@ -48,7 +48,7 @@ public class Quota {
@JsonProperty("requests.ephemeral-storage")
private String ephemeralStorageRequests;

@Schema(description = "The request ephemeralStorage allowed")
@Schema(description = "The limit ephemeralStorage allowed")
@JsonProperty("limits.ephemeral-storage")
private String ephemeralStorageLimits;

Expand Down Expand Up @@ -84,6 +84,8 @@ public void loadFromMap(Map<String, String> data) {
setCpuRequests(data.get("requests.cpu"));
setMemoryLimits(data.get("limits.memory"));
setCpuLimits(data.get("limits.cpu"));
setEphemeralStorageRequests(data.get("requests.ephemeral-storage"));
setEphemeralStorageLimits(data.get("limits.ephemeral-storage"));
setStorageRequests(data.get("requests.storage"));
if (data.containsKey("requests.nvidia.com/gpu")) {
setNvidiaGpuRequests(Integer.parseInt(data.get("requests.nvidia.com/gpu")));
Expand Down

0 comments on commit 4e5f6bd

Please sign in to comment.