Skip to content

operator: set status for child objects if no parent objects exist - #2539

Open
AndrewChubatiuk wants to merge 1 commit into
masterfrom
set-default-status-for-child-resources
Open

operator: set status for child objects if no parent objects exist#2539
AndrewChubatiuk wants to merge 1 commit into
masterfrom
set-default-status-for-child-resources

Conversation

@AndrewChubatiuk

Copy link
Copy Markdown
Contributor

Change should address comment #1181 (comment)

@AndrewChubatiuk
AndrewChubatiuk force-pushed the set-default-status-for-child-resources branch from db07321 to be824e7 Compare August 24, 2026 13:13
})
}
err = g.Wait()
if err = g.Wait(); err != nil {

@vrutkovs vrutkovs Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This would return just the parent status on err, ignoring child status, imo

err = g.Wait()
if syncErr := reconcile.SyncAggregatedChildStatus(ctx, r.Client, &instance); syncErr != nil && err == nil {
	err = syncErr
}
return

would include both parent and child errors correctly

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