Skip to content

Conversation

@bjoern-weidlich-anchorage
Copy link
Contributor

Fixes #14968

Motivation

I ran into this nil pointer due to malformed CronWorkflows and wanted to see if I could fix it.

Modifications

I made sure a nil check happened before that object was subsequently accessed in addPodMetadata()

Verification

I wrote a unit test to replicate the issue

Documentation

No update to documentation should be necessary as this simply fixes a bug.

Copy link
Member

@Joibel Joibel left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this, it's the same problem as #14896

@Joibel Joibel added the cherry-pick/3.7 Cherry-pick this to release-3.7 label Oct 24, 2025
@bjoern-weidlich-anchorage bjoern-weidlich-anchorage marked this pull request as ready for review October 29, 2025 20:32
@bjoern-weidlich-anchorage
Copy link
Contributor Author

@Joibel no problem. Marked this PR as ready for review

@Joibel Joibel merged commit c9cba3b into argoproj:main Oct 29, 2025
41 checks passed
@argo-cd-cherry-pick-bot
Copy link

❌ Cherry-pick failed for 3.7. Please check the workflow logs for details.

Joibel pushed a commit that referenced this pull request Nov 11, 2025
…tadata. Fixes #14968 (#14970)

(cherry picked from commit c9cba3b)

Signed-off-by: Bjoern Weidlich <[email protected]>
Signed-off-by: Alan Clucas <[email protected]>
Joibel added a commit that referenced this pull request Nov 11, 2025
…tadata. Fixes #14968 (cherry-pick #14970 for 3.7) (#15029)

Signed-off-by: Bjoern Weidlich <[email protected]>
Signed-off-by: Alan Clucas <[email protected]>
Co-authored-by: Bjoern Weidlich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick/3.7 Cherry-pick this to release-3.7

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nil pointer dereference due to malformed CronWorkflow. Workflow-controller crashlooping

2 participants