Skip to content

fix: add SkipNameValidation when creating controller in retry block#9123

Merged
leonardoce merged 2 commits intocloudnative-pg:mainfrom
mateusoliveira43:dev/5994
Nov 17, 2025
Merged

fix: add SkipNameValidation when creating controller in retry block#9123
leonardoce merged 2 commits intocloudnative-pg:mainfrom
mateusoliveira43:dev/5994

Conversation

@mateusoliveira43
Copy link
Contributor

@mateusoliveira43 mateusoliveira43 commented Nov 10, 2025

If runSubCommand fails after it creates instance-cluster controller, all subsequent runs will fail with controller with name instance-cluster already exists error. To fix this, the patch adds SkipNameValidation to the controller options for subsequent runs.

Also adds error logs every time an error is returned.

See: #5994

@mateusoliveira43 mateusoliveira43 requested a review from a team as a code owner November 10, 2025 17:31
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 10, 2025
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.25 release-1.26 release-1.27 labels Nov 10, 2025
@github-actions
Copy link
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@dosubot dosubot bot added bug 🐛 Something isn't working ok to merge 👌 This PR can be merged labels Nov 10, 2025
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Nov 11, 2025
@armru
Copy link
Member

armru commented Nov 11, 2025

/test limit=local

@github-actions
Copy link
Contributor

@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/19271484901

mateusoliveira43 and others added 2 commits November 17, 2025 13:39
Signed-off-by: Mateus Oliveira <66965232+mateusoliveira43@users.noreply.github.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 17, 2025
@leonardoce leonardoce merged commit dfd3e3c into cloudnative-pg:main Nov 17, 2025
33 of 36 checks passed
cnpg-bot pushed a commit that referenced this pull request Nov 17, 2025
…9123)

If `runSubCommand` fails after it creates instance-cluster controller,
all subsequent runs will fail with `controller with name
instance-cluster already exists` error. To fix this, the patch adds
`SkipNameValidation` to the controller options for subsequent runs.

Also adds error logs every time an error is returned.

See: #9159

Signed-off-by: Mateus Oliveira <66965232+mateusoliveira43@users.noreply.github.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
(cherry picked from commit dfd3e3c)
leonardoce pushed a commit that referenced this pull request Nov 17, 2025
…9123)

If `runSubCommand` fails after it creates instance-cluster controller,
all subsequent runs will fail with `controller with name
instance-cluster already exists` error. To fix this, the patch adds
`SkipNameValidation` to the controller options for subsequent runs.

Also adds error logs every time an error is returned.

See: #9159

Signed-off-by: Mateus Oliveira <66965232+mateusoliveira43@users.noreply.github.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
(cherry picked from commit dfd3e3c)
leonardoce pushed a commit that referenced this pull request Nov 17, 2025
…9123)

If `runSubCommand` fails after it creates instance-cluster controller,
all subsequent runs will fail with `controller with name
instance-cluster already exists` error. To fix this, the patch adds
`SkipNameValidation` to the controller options for subsequent runs.

Also adds error logs every time an error is returned.

See: #9159

Signed-off-by: Mateus Oliveira <66965232+mateusoliveira43@users.noreply.github.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
(cherry picked from commit dfd3e3c)
(cherry picked from commit 4ee77d0)
mnencia pushed a commit that referenced this pull request Jan 20, 2026
…9123)

If `runSubCommand` fails after it creates instance-cluster controller,
all subsequent runs will fail with `controller with name
instance-cluster already exists` error. To fix this, the patch adds
`SkipNameValidation` to the controller options for subsequent runs.

Also adds error logs every time an error is returned.

See: #9159

Signed-off-by: Mateus Oliveira <66965232+mateusoliveira43@users.noreply.github.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
(cherry picked from commit dfd3e3c)
(cherry picked from commit 4ee77d0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases bug 🐛 Something isn't working lgtm This PR has been approved by a maintainer ok to merge 👌 This PR can be merged release-1.25 release-1.26 release-1.27 size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants