-
Notifications
You must be signed in to change notification settings - Fork 556
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
Max leases quota #948
Max leases quota #948
Conversation
1st draft, not tested Ref: hashicorp#947
TESTARGS="--run QuotaLeaseCount" make test
Hi, the |
Removes , horrible quotaLeaseCountUpdate logic
Hi @rhys-evans I see some of the update code has been commented out due to hashicorp/vault#10712, which has been closed. I wasn't able to reproduce that issue with vault enterprise 1.7.3, so it seems like those code blocks could be restored? |
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.
Thanks for the patch! Please take a look at the comments; I think they're mostly leftover copy/paste from #825.
Also note that you'll need to make testacc
to run the lease quota test in this PR:
TESTARGS="--run QuotaLeaseCount" make testacc
Currently it fails because vault expects max_leases
as an int
, but this patch is sending it as a float
.
Do let us know if you'd like to work on these changes, otherwise we can take it over and finish it up.
When trying int in resource_quota_lease_count.go we get Error: rpc error: code = Unavailable desc = transport is closing Error: rpc error: code = Canceled desc = context canceled
|
7ccb42f
to
9dd4b05
Compare
|
ok, so seems to work with |
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.
Just one more small suggestion.
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.
Thanks!
Adds ability to manage lease-count quota's (Vault Enterprise Feature)
Community Note
Closes #947
Release note for CHANGELOG:
Output from acceptance testing:
The code for this PR was largely cloned from https://github.com/hashicorp/terraform-provider-vault/pull/825/files