Skip to content

replace CreateOrUpdate with Update if create never happens#182

Merged
ushitora-anqou merged 1 commit into
mainfrom
fix-usage-of-createorupdate
Sep 25, 2025
Merged

replace CreateOrUpdate with Update if create never happens#182
ushitora-anqou merged 1 commit into
mainfrom
fix-usage-of-createorupdate

Conversation

@satoru-takeuchi

Copy link
Copy Markdown
Contributor

Some CreateOrUpdate calls violate the following prerequisite.

https://github.com/kubernetes-sigs/controller-runtime/blob/961fc2c233d64e40b5bdf449f12bfa22cf2d7b28/pkg/controller/controllerutil/controllerutil.go#L312-L313

Let's fix this bug by replacing CreateOrUpdate with Update.

Some `CreateOrUpdate` calls violate the following prerequisite.

https://github.com/kubernetes-sigs/controller-runtime/blob/961fc2c233d64e40b5bdf449f12bfa22cf2d7b28/pkg/controller/controllerutil/controllerutil.go#L312-L313

Let's fix this bug by replacing `CreateOrUpdate` with `Update`.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
@ushitora-anqou ushitora-anqou merged commit 6cbc15a into main Sep 25, 2025
11 checks passed
@ushitora-anqou ushitora-anqou deleted the fix-usage-of-createorupdate branch September 25, 2025 00:44
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