Enqueue the previous Argo CD instance when NamespaceManagement consent is withdrawn

Aberta
#1,530 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@Gabrielandre02 já está trabalhando nisso.

Desde 13/11/2026.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
go, kubernetes
Domínio
backend, devops

Direção de pesquisa

Read argocd-operator/controllers/argocd/util.go and the related mapper code, then inspect the event-path tests for NamespaceManagement changes. Trace deletion and reassignment when the managed-by label matches, and check how remaining valid consent affects enqueueing. Done when the event tests cover consent withdrawal and reconciliation removes stale Image Updater RBAC while existing cleanup tests still pass.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Summary

NamespaceManagement deletion or reassignment can fail to enqueue the previously affected Argo CD instance. When the managing namespace has a matching managed-by label, the deletion predicate can skip cleanup and the instance may not reconcile. Image Updater RBAC grants in the target namespace can remain active until another reconciliation.

Required changes

Update the NamespaceManagement event handling in argocd-operator/controllers/argocd/util.go and related mapper code so deletion and reassignment enqueue the previously affected instance, including when predicate cleanup is skipped. Preserve existing cleanup behavior and account for any remaining valid consent.

Acceptance criteria

  • Deletion and reassignment enqueue the previously affected instance.
  • Event-path tests cover consent withdrawal, including the matching managed-by label case.
  • Tests verify that stale Image Updater RBAC is removed after reconciliation when no valid consent remains.
  • Existing cleanup behavior remains covered.

Requested by @dkarpele.

Pull request: https://github.com/redhat-developer/gitops-operator/pull/1511
Review comment: https://github.com/redhat-developer/gitops-operator/pull/1511#discussion_r4542576413

Linguagem predominante
Go
Estrelas
190
Forks
367
Merge médio
4d 2h
PRs com merge (30d)
63

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de redhat-developer/gitops-operator

Todas as issues de redhat-developer/gitops-operator

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.