Skip to content

fix: set ownerReferences in CreateServiceIfNotExists and CreateConfigMapIfNotExists#368

Merged
anikin-aa merged 1 commit intoNetcracker:mainfrom
vlsi:fix/ownerref-create-if-not-exists
Apr 27, 2026
Merged

fix: set ownerReferences in CreateServiceIfNotExists and CreateConfigMapIfNotExists#368
anikin-aa merged 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>
@anikin-aa anikin-aa merged commit 5d905fb into Netcracker:main Apr 27, 2026
16 of 24 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants