:fix(helm_repository): normalize both sides of the repo URL comparison (#1236) (#1259)

helm stores repository URLs verbatim, so a repository registered with a
trailing slash keeps it in repositories.yaml. Only the URL coming from the
task was normalized, so a repository that already matched was reported as a
name conflict.

Fixes #1235

(cherry picked from commit 094240ab77)

Co-authored-by: Yuriy Novostavskiy <yuriy@novostavskiy.kyiv.ua>
This commit is contained in:
Mandar Kulkarni
2026-09-15 11:03:54 -07:00
committed by GitHub
co-authored by Yuriy Novostavskiy
parent 14712d57a7
commit d7b53d0464
3 changed files with 82 additions and 1 deletions
@@ -0,0 +1,3 @@
---
bugfixes:
- helm_repository - normalize both sides of the repository URL comparison, so that a repository already registered with a trailing slash is recognized as matching instead of failing with ``Repository already have a repository named <name>`` (https://github.com/ansible-collections/kubernetes.core/pull/1236).