Skip to content

🌱 Relax ContentLibrary type check for async quota#1518

Open
abaruni wants to merge 1 commit intovmware-tanzu:mainfrom
abaruni:relax-quota-cl-type-check
Open

🌱 Relax ContentLibrary type check for async quota#1518
abaruni wants to merge 1 commit intovmware-tanzu:mainfrom
abaruni:relax-quota-cl-type-check

Conversation

@abaruni
Copy link
Contributor

@abaruni abaruni commented Mar 16, 2026

What does this PR do, and why is it needed?

This PR relaxes the type (ContentLibrary, Inventory) that is done before initiating async quota validation. Async quota validation is no longer reserved solely for Inventory type ContentLibrary.

Which issue(s) is/are addressed by this PR? (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Fixes #

Are there any special notes for your reviewer:

Please add a release note if necessary:

NONE

This PR relaxes the type (ContentLibrary, Inventory) that is done
before initiating async quota validation. Async quota validation is
no longer reserved solely for Inventory type ContentLibrary.
@github-actions github-actions bot added the size/M Denotes a PR that changes 30-99 lines. label Mar 16, 2026
}

// Check if quota validation is needed
if metav1.HasLabel(ctx.ContentLibraryV1A2.ObjectMeta, pkgconst.AsyncQuotaPerformCheckAnnotationKey) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I know it what's was there before but is the Async...AnnotationKey name just a typo, or something like used in both annotations and labels?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants