Skip to content

fix patch cm with empty labels#1508

Merged
Uburro merged 1 commit intosoperator-release-1.22from
fix-empry-labels-1.22
Aug 29, 2025
Merged

fix patch cm with empty labels#1508
Uburro merged 1 commit intosoperator-release-1.22from
fix-empry-labels-1.22

Conversation

@Uburro
Copy link
Collaborator

@Uburro Uburro commented Aug 29, 2025

This PR fixes a potential nil pointer dereference when patching ConfigMaps that have empty or nil labels by ensuring the Labels map is initialized before copying labels from the source.

Adds nil check and initialization for the Labels map in the ConfigMap patch operation
Prevents runtime panics when copying labels to ConfigMaps with nil Labels

@Uburro Uburro merged commit f79233a into soperator-release-1.22 Aug 29, 2025
4 of 5 checks passed
@Uburro Uburro deleted the fix-empry-labels-1.22 branch September 24, 2025 17:00
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