-
Notifications
You must be signed in to change notification settings - Fork 91
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
Harbor config system project quota #367
Harbor config system project quota #367
Conversation
Signed-off-by: David Berndtsson <david.berndtsson@gmail.com>
Signed-off-by: David Berndtsson <david.berndtsson@gmail.com>
@@ -78,12 +83,17 @@ func resourceConfigSystemRead(d *schema.ResourceData, m interface{}) error { | |||
if err != nil { | |||
return fmt.Errorf("Error getting system configuration %s", err) | |||
} | |||
storage := jsonData.StoragePerProject.Value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should accept the user input for storage quota in GB and then only convert it to bytes while making the API call?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I’m aware the api accept bytes. Did the converter to GB since we use it in other places as well which is an argument to DRY this part as well.
Signed-off-by: David Berndtsson <david.berndtsson@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Florian Blampey <flbla@users.noreply.github.com>
This PR implement the option to set default storage quotas for the projects.
This fixes #359