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

Fix quota enforcing old path issue #10689

Merged
merged 4 commits into from
Feb 9, 2021
Merged

Fix quota enforcing old path issue #10689

merged 4 commits into from
Feb 9, 2021

Conversation

vishalnayak
Copy link
Member

No description provided.

@vishalnayak vishalnayak added this to the 1.6.2 milestone Jan 13, 2021
Copy link
Collaborator

@ncabatoff ncabatoff left a comment

Choose a reason for hiding this comment

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

Smart!

@mladlow mladlow modified the milestones: 1.6.2, 1.6.3 Jan 19, 2021
Copy link
Contributor

@mgritter mgritter left a comment

Choose a reason for hiding this comment

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

This looks good, but don't we need to do the same thing for lease count quotas, to catch changes to namespace and path?

                switch {
                case quota == nil:
                        quota = quotas.NewLeaseCountQuota(name, ns.Path, mountPath, int64(maxLeases))
                default:
                        lcq := quota.(*quotas.LeaseCountQuota)
                        lcq.NamespacePath = ns.Path
                        lcq.MountPath = mountPath
                        lcq.MaxLeases = int64(maxLeases)
                }

@vishalnayak
Copy link
Member Author

Yep. We need to. That PR will follow.

@vercel vercel bot temporarily deployed to Preview – vault-storybook February 9, 2021 10:21 Inactive
@vercel vercel bot temporarily deployed to Preview – vault February 9, 2021 10:21 Inactive
@vishalnayak vishalnayak merged commit 20e6967 into master Feb 9, 2021
@vishalnayak vishalnayak deleted the fix-quota-db-issue branch February 9, 2021 10:46
@vishalnayak vishalnayak modified the milestones: 1.6.3, 1.7 Feb 9, 2021
vishalnayak added a commit that referenced this pull request Feb 9, 2021
* Fix db indexing issue

* Add CL update
vishalnayak added a commit that referenced this pull request Feb 9, 2021
* Fix db indexing issue

* Add CL update
@mladlow mladlow modified the milestones: 1.7, 1.6.3 Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants