Skip to content

[Bug]: ArgoCD root app can prune production resources from main #3607

Description

@tasoo-oos

Describe the bug

production ArgoCD root Application이 app definitions를 main에서 읽고, root sync에 prune: true가 켜져 있습니다. staging용 변경이나 app 삭제가 release 검증 전 production ApplicationSet/resource prune으로 이어질 수 있습니다.

Reproduction

  1. infra/k8s/argocd/applications/argocd.yaml에서 codedang source targetRevision이 main인지 확인합니다.
  2. 같은 파일의 root syncPolicy에 automated.prune: true가 켜져 있는지 확인합니다.
  3. main에서 app definition이 삭제되면 production root app이 삭제 리소스를 prune할 수 있습니다.

Logs

없음. 설정 diff 기반 이슈입니다.

System Info

production ArgoCD, main/release GitOps 환경.

Validations

  • Code of Conduct 확인
  • Contributing Guidelines 확인
  • 중복 issue 확인

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Pending ✋

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions