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

Add ephemeral storage to quotas #399

Merged
merged 3 commits into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading