Skip to content

[Backport release-1.6] fix(keycloak-configure): patch HelmRelease in release namespace on teardown - #3478

Merged
myasnikovdaniil merged 1 commit into
release-1.6from
backport-3372-to-release-1.6
Aug 4, 2026
Merged

[Backport release-1.6] fix(keycloak-configure): patch HelmRelease in release namespace on teardown#3478
myasnikovdaniil merged 1 commit into
release-1.6from
backport-3372-to-release-1.6

Conversation

@github-actions

Copy link
Copy Markdown

Description

Backport of #3372 to release-1.6.

…ardown

The pre-delete teardown Job clears the HelmRelease finalizers as its
final step, but targeted a hardcoded namespace that does not match the
namespace where the release and its RBAC live. The Job's Role and
RoleBinding are created in the release namespace and grant patch on the
HelmRelease by release name, so the ServiceAccount was Forbidden to patch
the HelmRelease in the hardcoded namespace. The Job errored and retried
forever, the HelmRelease stuck in Terminating, and the Helm release
wedged in "uninstalling", blocking any teardown or reinstall.

Target the release name and namespace so the patch matches the RBAC that
grants it. Add a helm-unittest pinning the rendered namespace.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
(cherry picked from commit fd568de)
@dosubot dosubot Bot added area/platform Issues or PRs related to platform infrastructure (bundle, flux, talos, installer) backport Should change be backported on previous release kind/bug Categorizes issue or PR as related to a bug labels Jul 28, 2026
@myasnikovdaniil
myasnikovdaniil merged commit 0906786 into release-1.6 Aug 4, 2026
7 checks passed
@myasnikovdaniil
myasnikovdaniil deleted the backport-3372-to-release-1.6 branch August 4, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/platform Issues or PRs related to platform infrastructure (bundle, flux, talos, installer) backport Should change be backported on previous release kind/bug Categorizes issue or PR as related to a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants