Skip to content

Fix race condition in initial-maintenance job creation#1104

Merged
vshnbot merged 2 commits intodevelopfrom
appcat/614/fix/init-maint
Mar 12, 2026
Merged

Fix race condition in initial-maintenance job creation#1104
vshnbot merged 2 commits intodevelopfrom
appcat/614/fix/init-maint

Conversation

@vshnbot
Copy link
Copy Markdown
Collaborator

@vshnbot vshnbot commented Mar 12, 2026

Summary

On the first reconcile, the composite resource metadata may not be fully populated yet, causing a job named just initial-maintenance instead of {composite}-initial-maintenance with empty env vars that fails immediately. The orphaned error pods trigger KubePodNotReady alerts indefinitely.

Defer job creation until GetName() is non-empty. The next reconcile will have the full metadata.

Checklist

@mdnix mdnix self-assigned this Mar 12, 2026
@mdnix mdnix added the bug Something isn't working label Mar 12, 2026
@mdnix mdnix force-pushed the appcat/614/fix/init-maint branch from 709026a to 456a312 Compare March 12, 2026 15:53
@mdnix mdnix self-requested a review March 12, 2026 15:54
@vshnbot vshnbot merged commit ebfb804 into develop Mar 12, 2026
@vshnbot vshnbot deleted the appcat/614/fix/init-maint branch March 12, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants