Skip to content

Conversation

@fahedouch
Copy link

@fahedouch fahedouch commented Dec 29, 2025

Description of your changes

Added a configurable cache synchronization timeout to avoid error :

Informer fails to sync, timeout waiting for API

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Copilot AI review requested due to automatic review settings December 29, 2025 11:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a configurable cache synchronization timeout to address the "Informer fails to sync, timeout waiting for API" error. The change introduces a new command-line flag that allows users to specify how long the controller should wait for caches to sync during startup.

  • Adds a new --cache-sync-timeout flag with a default value of 2 minutes
  • Configures the controller manager to use this timeout value
  • Imports the necessary config package from controller-runtime

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fahedouch fahedouch force-pushed the cache_sync_timeout branch 2 times, most recently from 3d841e3 to 45e1cf4 Compare December 30, 2025 04:33
echo "No pod found for provider ${PACKAGE_NAME}"
fi
exit 1
fi
Copy link
Author

@fahedouch fahedouch Dec 30, 2025

Choose a reason for hiding this comment

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

it was only for debugging purposes

@Damien-DAGORN Damien-DAGORN merged commit 9698641 into master Dec 30, 2025
11 of 12 checks passed
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.

3 participants