René's URL Explorer Experiment


Title: refactor: clean up the Kubernetes resource matchers by csviri · Pull Request #3546 · operator-framework/java-operator-sdk · GitHub

Open Graph Title: refactor: clean up the Kubernetes resource matchers by csviri · Pull Request #3546 · operator-framework/java-operator-sdk

X Title: refactor: clean up the Kubernetes resource matchers by csviri · Pull Request #3546 · operator-framework/java-operator-sdk

Description: GenericKubernetesResourceMatcher allocated the path-prefix lists (List.of(SPEC), List.of(METADATA), the labels/annotations pair, List.of(STATUS)) once per JSON-diff node while matching, and nodeIsChildOf built a stream per call. Both run for every node of every match, so hoist the lists to constants and use an indexed loop. SSABasedGenericKubernetesResourceMatcher#sanitizeState nested the StatefulSet volume-claim-template handling four levels deep inside the type ladder; extract it into sanitizeVolumeClaimTemplates so the ladder reads as one dispatch per resource kind. Quality-only change: no intended behavior difference. Cut from next and touches a disjoint set of files from the sibling cleanup PRs, so it can be merged independently and in any order. Verified on this branch alone: mvn -o -pl operator-framework-core,operator-framework-junit -am test (693 core + 6 junit tests, no failures) and mvn spotless:check.

Open Graph Description: GenericKubernetesResourceMatcher allocated the path-prefix lists (List.of(SPEC), List.of(METADATA), the labels/annotations pair, List.of(STATUS)) once per JSON-diff node while matching, and nodeIsC...

X Description: GenericKubernetesResourceMatcher allocated the path-prefix lists (List.of(SPEC), List.of(METADATA), the labels/annotations pair, List.of(STATUS)) once per JSON-diff node while matching, and nodeIsC...

Opengraph URL: https://github.com/operator-framework/java-operator-sdk/pull/3546

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:70f77509-9dda-2a8e-ecd0-f72ddce5caef
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD3F4:3E0336:FD03D7:14A8504:6AED5DE4
html-safe-noncef01bebba5267f195f16f5703560447799fb83fb45dac29028af134a835719ec1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0Y0OjNFMDMzNjpGRDAzRDc6MTRBODUwNDo2QUVENURFNCIsInZpc2l0b3JfaWQiOiIzOTUyMDcyNDc2Mjc0Mjg2MDUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac082cb7f3f407ea4ad4ff0cc6d495966fdb1c3b1c34525e44283d3f01979e329c
hovercard-subject-tagpull_request:4228215744
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/operator-framework/java-operator-sdk/pull/3546/files
twitter:imagehttps://avatars.githubusercontent.com/u/5443269?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5443269?s=400&v=4
og:image:altGenericKubernetesResourceMatcher allocated the path-prefix lists (List.of(SPEC), List.of(METADATA), the labels/annotations pair, List.of(STATUS)) once per JSON-diff node while matching, and nodeIsC...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/operator-framework/java-operator-sdk git https://github.com/operator-framework/java-operator-sdk.git
octolytics-dimension-user_id38202270
octolytics-dimension-user_loginoperator-framework
octolytics-dimension-repository_id188592933
octolytics-dimension-repository_nwooperator-framework/java-operator-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id188592933
octolytics-dimension-repository_network_root_nwooperator-framework/java-operator-sdk
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/operator-framework/java-operator-sdk/pull/3546/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foperator-framework%2Fjava-operator-sdk%2Fpull%2F3546%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foperator-framework%2Fjava-operator-sdk%2Fpull%2F3546%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=operator-framework%2Fjava-operator-sdk
Reloadhttps://github.com/operator-framework/java-operator-sdk/pull/3546/files
Reloadhttps://github.com/operator-framework/java-operator-sdk/pull/3546/files
Reloadhttps://github.com/operator-framework/java-operator-sdk/pull/3546/files
operator-frameworkhttps://github.com/operator-framework
java-operator-sdkhttps://github.com/operator-framework/java-operator-sdk
Codehttps://github.com/operator-framework/java-operator-sdk
Issues49 (49)https://github.com/operator-framework/java-operator-sdk/issues
Pull requests11 (11)https://github.com/operator-framework/java-operator-sdk/pulls
Discussionshttps://github.com/operator-framework/java-operator-sdk/discussions
Actionshttps://github.com/operator-framework/java-operator-sdk/actions
Projectshttps://github.com/operator-framework/java-operator-sdk/projects
Security and qualityhttps://github.com/operator-framework/java-operator-sdk/security
Insightshttps://github.com/operator-framework/java-operator-sdk/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Foperator-framework%2Fjava-operator-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Foperator-framework%2Fjava-operator-sdk%2Fissues%2Fnew%2Fchoose
csvirihttps://github.com/csviri
operator-framework:nexthttps://github.com/operator-framework/java-operator-sdk/tree/next
csviri:kubernetes-matcher-cleanupshttps://github.com/csviri/java-operator-sdk/tree/kubernetes-matcher-cleanups
Conversation 3 https://github.com/operator-framework/java-operator-sdk/pull/3546
Commits 1 https://github.com/operator-framework/java-operator-sdk/pull/3546/commits
Checks 28 https://github.com/operator-framework/java-operator-sdk/pull/3546/checks
Files changed https://github.com/operator-framework/java-operator-sdk/pull/3546/files
Please reload this pagehttps://github.com/operator-framework/java-operator-sdk/pull/3546/files
refactor: clean up the Kubernetes resource matchers https://github.com/operator-framework/java-operator-sdk/pull/3546/files#top
Show all changes 1 commit https://github.com/operator-framework/java-operator-sdk/pull/3546/files
ef04929 refactor: clean up the Kubernetes resource matchers csviri Aug 7, 2026 https://github.com/operator-framework/java-operator-sdk/pull/3546/commits/ef04929cd339e6865acefd1c4affca520eb42d65
Clear filters https://github.com/operator-framework/java-operator-sdk/pull/3546/files
Please reload this pagehttps://github.com/operator-framework/java-operator-sdk/pull/3546/files
Please reload this pagehttps://github.com/operator-framework/java-operator-sdk/pull/3546/files
GenericKubernetesResourceMatcher.java https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-3425845ceca0cbb05292b87cdceec9960b4342cefac82c18ab929a5ef22e5288
SSABasedGenericKubernetesResourceMatcher.java https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-7568f2dc58ce3a6a5d7ce2d5227aeb49402136b091fb19a4d8cadb28351ce709
...peratorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcher.javahttps://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-3425845ceca0cbb05292b87cdceec9960b4342cefac82c18ab929a5ef22e5288
View file https://github.com/csviri/java-operator-sdk/blob/ef04929cd339e6865acefd1c4affca520eb42d65/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/GenericKubernetesResourceMatcher.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/operator-framework/java-operator-sdk/pull/3546/{{ revealButtonHref }}
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-3425845ceca0cbb05292b87cdceec9960b4342cefac82c18ab929a5ef22e5288
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-3425845ceca0cbb05292b87cdceec9960b4342cefac82c18ab929a5ef22e5288
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-3425845ceca0cbb05292b87cdceec9960b4342cefac82c18ab929a5ef22e5288
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-3425845ceca0cbb05292b87cdceec9960b4342cefac82c18ab929a5ef22e5288
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-3425845ceca0cbb05292b87cdceec9960b4342cefac82c18ab929a5ef22e5288
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-3425845ceca0cbb05292b87cdceec9960b4342cefac82c18ab929a5ef22e5288
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-3425845ceca0cbb05292b87cdceec9960b4342cefac82c18ab929a5ef22e5288
...dk/operator/processing/dependent/kubernetes/SSABasedGenericKubernetesResourceMatcher.javahttps://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-7568f2dc58ce3a6a5d7ce2d5227aeb49402136b091fb19a4d8cadb28351ce709
View file https://github.com/csviri/java-operator-sdk/blob/ef04929cd339e6865acefd1c4affca520eb42d65/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/SSABasedGenericKubernetesResourceMatcher.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/operator-framework/java-operator-sdk/pull/3546/{{ revealButtonHref }}
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-7568f2dc58ce3a6a5d7ce2d5227aeb49402136b091fb19a4d8cadb28351ce709
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-7568f2dc58ce3a6a5d7ce2d5227aeb49402136b091fb19a4d8cadb28351ce709
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-7568f2dc58ce3a6a5d7ce2d5227aeb49402136b091fb19a4d8cadb28351ce709
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-7568f2dc58ce3a6a5d7ce2d5227aeb49402136b091fb19a4d8cadb28351ce709
https://github.com/operator-framework/java-operator-sdk/pull/3546/files#diff-7568f2dc58ce3a6a5d7ce2d5227aeb49402136b091fb19a4d8cadb28351ce709
Please reload this pagehttps://github.com/operator-framework/java-operator-sdk/pull/3546/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.