Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

removing tombstones#3013

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@shawkins
Copy link
Collaborator

@shawkinsshawkins commentedOct 21, 2025
edited
Loading

Replaces:#2989 to target v5.3

Adds per informer configuration and uses the configuration for the primary resource.

Probably superceded by :#3015 - at the very least some changes from there are needed here.

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
@openshift-ciopenshift-cibot added the do-not-merge/work-in-progressIndicates that a PR should not merge because it is a work in progress. labelOct 21, 2025
Copy link
Collaborator

@csviricsviri left a comment

Choose a reason for hiding this comment

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

Added some comments to fill in some details, refine naming.

But otherwise this looks awesome! thank you!

returnthis;
}

publicBuilder<R>parseResourceVersionsForEventFilteringAndCaching(booleanparse) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

comparableResourceVersions we should probably have this also aswithComparableResourceVersions(boolean) that is a more generic name.

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

I did this to be consistent with the other configuration for now. I can use a different name to start with here, or we can use a follow-up issue on how to approach the renaming in general.

privatePrimaryToSecondaryMapper<?>primaryToSecondaryMapper;
privateSecondaryToPrimaryMapper<R>secondaryToPrimaryMapper;
privateKubernetesClientkubernetesClient;
privatebooleancomparableResourceVersions =true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should add this also to@KubernetesDependent annotation.

log.debug("Resource found in cache: {} for id: {}",res.isPresent(),resourceID);
returnres;
}
log.debug(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it make sense also to log ifparseResourceVersions is true/false? But that might be trivial to see.


publicOptional<String>getLastSyncResourceVersion(Optional<String>namespace) {
returngetSource(namespace.orElse(WATCH_ALL_NAMESPACES))
.map(source ->source.getLastSyncResourceVersion());
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: can be replaced by methode reference

Copy link
CollaboratorAuthor

@shawkinsshawkinsOct 23, 2025
edited
Loading

Choose a reason for hiding this comment

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

Sorry, this can be removed - see#3015

.getResourceVersion()
.equals(previousResourceVersion))
||isLaterResourceVersion(resourceId,newResource,cachedResource))) {
// first check against the source in general - this also prevents resurrecting resources when
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you pls expand the comment, and explain more in details (maybe sequence of events) how this prevents resurrection ?

@shawkins
Copy link
CollaboratorAuthor

@csviri do you want me to refine this pr, or just move onto ##3015

@csviri
Copy link
Collaborator

@csviri do you want me to refine this pr, or just move onto ##3015

Will review that, probably we can move on with that.

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

Reviewers

@csviricsviricsviri approved these changes

Assignees

No one assigned

Labels

do-not-merge/work-in-progressIndicates that a PR should not merge because it is a work in progress.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@shawkins@csviri

[8]ページ先頭

©2009-2025 Movatter.jp