Skip to content

Sync namespace and deployment informers before pod #1512

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

Merged
merged 1 commit into from
May 2, 2025

Conversation

akhilamohanan
Copy link
Contributor

Previously, if a namespace had an EPG annotation and the host-agent pod restarted, the namespace informer might not have the annotation available in time. As a result, the endpoint file would be initially updated with the default EPG. Once the namespace informer caught up, the correct annotated EPG would be applied, causing unnecessary overrides.

This change ensures that the namespace and deployment informers are fully synced before syncing the pod
informer, preventing incorrect EPG assignments during host-agent restarts.

Previously, if a namespace had an EPG annotation and
the host-agent pod restarted, the namespace informer
might not have the annotation available in time. As
a result, the endpoint file would be initially updated
with the default EPG. Once the namespace informer
caught up, the correct annotated EPG would be applied,
causing unnecessary overrides.

This change ensures that the namespace and deployment
informers are fully synced before syncing the pod
informer, preventing incorrect EPG assignments during
host-agent restarts.
@snaiksat snaiksat merged commit cbeee44 into master May 2, 2025
5 checks passed
@snaiksat snaiksat deleted the epg-annotation-fix branch May 2, 2025 08:56
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.

2 participants