Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

add basic support for resource quota #45

Closed
wants to merge 2 commits into from

Conversation

atantawi
Copy link
Collaborator

@atantawi atantawi commented Nov 9, 2023

Handles phase 1 of issue #44 , namely Basic handling of quota resources {cpu, memory, ...}, {requests.cpu, requests.memory, ...} and {limits.cpu, limits.memory, ...}, including extended resources.

@atantawi atantawi requested a review from tardieu November 9, 2023 22:31
state map[string]*QuotaState
}

// NewQuotaTracker : Create a new QuotaTracker
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// NewQuotaTracker : Create a new QuotaTracker
// NewQuotaTracker creates a new QuotaTracker

AFAIK, the convention in Go is that a doc comment of a func starts with a complete sentence that begins with the name of the element it describes.
ref: https://go.dev/blog/godoc
Although, it seems that this convention is not consistently used in this repo...

@atantawi atantawi closed this Jan 30, 2024
@atantawi atantawi deleted the working branch January 30, 2024 18:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants