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

concord-agent-operator: use informers API #1072

Merged
merged 1 commit into from
Jan 28, 2025
Merged

concord-agent-operator: use informers API #1072

merged 1 commit into from
Jan 28, 2025

Conversation

ibodrov
Copy link
Collaborator

@ibodrov ibodrov commented Jan 28, 2025

Avoid "resource too old" issue when using "naked" Watchers.

As recommended here https://stackoverflow.com/a/61437982

@ibodrov ibodrov added the wip Work in progress, do not merge label Jan 28, 2025
@ibodrov ibodrov removed the wip Work in progress, do not merge label Jan 28, 2025
@ibodrov ibodrov marked this pull request as ready for review January 28, 2025 15:41
@ibodrov ibodrov requested a review from a team January 28, 2025 15:42
@ibodrov ibodrov added the wip Work in progress, do not merge label Jan 28, 2025
@ibodrov ibodrov removed the wip Work in progress, do not merge label Jan 28, 2025

@Override
public void onAdd(AgentPool resource) {
System.out.println("onAdd");
Copy link
Contributor

Choose a reason for hiding this comment

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

let's put it into scheduler.onEvent :)

log.info("onEvent [{}, {}]", type, resource);  // or something from `resource` :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops, should not be there. I will add the log though -- good idea.

@ibodrov ibodrov requested a review from brig January 28, 2025 16:38
@ibodrov ibodrov merged commit 0fdf4e0 into master Jan 28, 2025
4 checks passed
@ibodrov ibodrov deleted the ib/use-informers branch January 28, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants