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

feat : Restrict the size of operator catalog < 200GB #2673

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bnshr
Copy link
Contributor

@bnshr bnshr commented Jan 8, 2025

@dcibot
Copy link
Collaborator

dcibot commented Jan 8, 2025

@bnshr bnshr force-pushed the CNFCERT-1087-catalog-size branch 2 times, most recently from b595061 to 3c278d3 Compare January 8, 2025 07:46
@bnshr bnshr force-pushed the CNFCERT-1087-catalog-size branch from 3c278d3 to 61df6c4 Compare January 8, 2025 08:13
@@ -28,3 +37,115 @@ func SkipPMBasedOnChannel(channels []olmpkgv1.PackageChannel, csvName string) bo

return skipPMBasedOnChannel
}

// TODO: Get all catalog sources of application operators
func getOperatorCatalogSources() {
Copy link
Member

Choose a reason for hiding this comment

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

We get AllCatalogSources in the autodiscover here: https://github.com/redhat-best-practices-for-k8s/certsuite/blob/main/pkg/provider/provider.go#L121

So they are already in the env. You could use that in the lookup you use below as well in func getCatalogSize(catalogNamespace, catalogSourceName string) where you could just loop through the env and look for the matching name/namespace combo.

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

Successfully merging this pull request may close these issues.

3 participants