Skip to content

Conversation

@dlipovetsky
Copy link
Contributor

What problem does this PR solve?:
It is possible for some resource to exist, but a copy of it cannot be created. For example, CAPX validation became more strict without changing its API version. Templates already on the cluster remain usable. However, they cannot be copied, because the copy does not pass validation.

Prior to this change, we always copied the template, and ignored the "already exists" error. Now we first check if the template exist, and only create it if it does not.

Which issue(s) this PR fixes:
Fixes NCN-110955

How Has This Been Tested?:

Special notes for your reviewer:

It is possible for some resource to exist, but a copy of it cannot be
created. For example, CAPX validation became more strict without
changing its API version. Templates already on the cluster remain
usable. However, they cannot be copied, because the copy does not pass
validation.

Prior to this change, we always copied the template, and ignored the
"already exists" error. Now we first check if the template exist, and
only create it if it does not.
@dkoshkin
Copy link
Contributor

When a failure like this happens, does it prevent the rest of the resources from being copied or is this more about fixing the controller from continuously failing?

@dlipovetsky dlipovetsky marked this pull request as draft November 14, 2025 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants