Skip to content

Reproduction of getSecondaryResources Issue #1

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tomoyat
Copy link
Owner

@tomoyat tomoyat commented Jul 17, 2025

Prerequisites

Problem

  • When the reconciler runs immediately after the operator starts, context.getSecondaryResources() may not return all expected secondary resources.

Steps to Reproduce

This test registers both primary and secondary resources before starting the operator. It then records the secondary resources retrieved during the first reconciliation.

There are two ways to retrieve the secondary resources in this test:
1. Using getSecondaryResources()
2. Using the informer directly

The number of resources registered before the operator starts can be adjusted. When this number is increased, the result from getSecondaryResources() becomes incomplete or incorrect.

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

Successfully merging this pull request may close these issues.

1 participant