Skip to content

fix: set ownerReferences in CreateServiceIfNotExists and CreateConfigMapIfNotExists#368

Open
vlsi wants to merge 1 commit intoNetcracker:mainfrom
vlsi:fix/ownerref-create-if-not-exists
Open

fix: set ownerReferences in CreateServiceIfNotExists and CreateConfigMapIfNotExists#368
vlsi wants to merge 1 commit intoNetcracker:mainfrom
vlsi:fix/ownerref-create-if-not-exists

Conversation

@vlsi
Copy link
Copy Markdown
Collaborator

@vlsi vlsi commented Mar 27, 2026

These methods were missing ownerReferences, unlike their CreateOrUpdate counterparts. This caused operator-created services (e.g. pg-patroni-api, pg-patroni-ro) and config maps to be orphaned after helm uninstall, since Kubernetes garbage collector had no owner to cascade from.

Just wondering: do you think a test case is needed for the change?

…MapIfNotExists

These methods were missing ownerReferences, unlike their CreateOrUpdate
counterparts. This caused operator-created services (e.g. pg-patroni-api,
pg-patroni-ro) and config maps to be orphaned after helm uninstall,
since Kubernetes garbage collector had no owner to cascade from.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

3 participants