Skip to content

fix(k8s): permit mattermost-operator and cnpg-system in homelab project destinations #2925

Closed

Description

@dan-petty

Problem Description

The Argo CD Application base (in project homelab) synchronizes k8s/kustomization.yaml, which includes k8s/mattermost-operator-limitrange.yaml. This resource has namespace: mattermost-operator.
However, AppProject homelab in k8s/argocd/apps/projects.yaml does not list mattermost-operator in its destinations.
As a result, Argo CD refuses to synchronize base:
one or more synchronization tasks are not valid: namespace mattermost-operator is not permitted in project 'homelab'

Because base fails to synchronize, Kubernetes never creates the namespaces mattermost, mattermost-operator, and cnpg-system. Consequently, the mattermost, mattermost-operator, and cloudnative-pg applications fail to deploy (namespaces "..." not found).

Reproduction Steps

  1. Check Argo CD application status: kubectl get application -n argocd base
  2. Inspect status.operationState:
    one or more synchronization tasks are not valid: namespace mattermost-operator is not permitted in project 'homelab'
  3. Check kubectl get application -n argocd mattermost:
    namespaces "mattermost" not found

Expected vs Actual Behavior

Expected: AppProject homelab permits destination namespaces mattermost-operator and cnpg-system so that base synchronizes all base cluster resources and creates the necessary namespaces.
Actual: base fails to synchronize with a project permission error, leaving namespaces uncreated.

Environment Diagnostics

  • DevOps CLI Version: 0.2.37
  • Python Version: 3.14.10
  • OS & Architecture: Linux x86_64
  • Execution Environment: DevContainer / Homelab k3s

Logs, Traces, or Terminal Output

message: 'one or more synchronization tasks are not valid: namespace mattermost-operator is not permitted in project ''homelab''.'

Activity

  1. added
    source/agent
    type/bug
    scope/k8s
    status/new
    value/medium
    effort/low
    on Oct 31, 2026
  2. dan-petty commented on Oct 31, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. Blocks base sync and cascades to three application failures, but only in a homelab environment.
    • Value: Medium. Unblocks deployment of mattermost, mattermost-operator, and cloudnative-pg workloads.
    • Effort: Low. Add two namespace strings to an existing destinations list in one YAML file.
    • Related: dan-petty/homelab#329, which asks for a different change. Both edit AppProject destinations in projects.yaml, but the candidate adds missing namespaces while 1646 audits and removes excess permissions.
  3. added
    priority/p2-medium
    status/in-progress
    and removed
    status/new
    on Oct 31, 2026
  4. removed
    status/in-progress
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/k8ssource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions