Skip to content

fix(k8s): resolve argocd application out-of-sync and manifest generation failures #1279

Closed

Description

@dan-petty

Resolves out-of-sync and manifest generation failures across Argo CD applications:

  1. ingress: loki-ingress sets port: null, violating Kubernetes Ingress v1 schema. Specify number: 3100.
  2. base & monitoring: Ownership collision between base and monitoring over Grafana dashboard ConfigMaps, and between base and pyroscope over Service/pyroscope. Remove duplicate resources so each application has single ownership.
  3. devops: k8s/devops/configmap.yaml is gitignored, causing kustomize build to fail during Argo CD manifest generation. Track base configmap in git and patch in homelab overlay.

Activity

  1. added this to the v0.2.28 milestone on Oct 7, 2026
  2. added
    type/bug
    scope/k8s
    priority/p1-high
    on Oct 7, 2026
  3. removed this from the v0.2.28 milestone on Oct 7, 2026
  4. dan-petty-bot commented on Oct 7, 2026

    @dan-petty-bot
    Collaborator

    Intake placed this item to the backlog: only a critical fix joins the current release at intake; a release start pulls Ready items in, P0 features first.

    • Priority: P2-Medium. Argo CD cannot generate or sync manifests until these are fixed, but the scope is limited to three targeted corrections in a homelab cluster.
    • Value: Medium. Restores Argo CD reconciliation for the homelab cluster, which is the project's primary deployment mechanism.
    • Effort: Low. Three small, well-scoped changes: set a port number, remove duplicate resources, and un-gitignore one configmap.
  5. added this to the v0.2.28 milestone on Oct 7, 2026
  6. dan-petty-bot commented on Oct 7, 2026

    @dan-petty-bot
    Collaborator

    Admitted to v0.2.28: an open or merged pull request is in flight for it. (devops roadmap reprioritize)

  7. dan-petty-bot commented on Oct 7, 2026

    @dan-petty-bot
    Collaborator

    What changed

    #1281, merged into release/v0.2.28 as 3f02ee9.

    Problem

    Argo CD applications were in degraded/out-of-sync or error states:

    1. ingress application: Out of sync because loki-ingress had port: null in k8s/overlays/homelab/ingress/kustomization.yaml and blank port in k8s/ingress/ingress-routes.yaml, failing Kubernetes Ingress schema validation (Ingress in version "v1" cannot be handled as a Ingress: json: cannot unmarshal bool into Go struct field ... of type int32).
    2. base and monitoring applications: Out of sync due to resource ownership conflicts:
      • Root k8s/kustomization.yaml included monitoring/dashboards while the dedicated monitoring application also deployed Grafana dashboards in namespace monitoring.
      • k8s/monitoring/service-aliases.yaml created Service/pyroscope, which conflicted with the pyroscope Helm chart managed by the infra stack.
        These ownership collisions caused continuous synchronization churn (SharedResourceWarning).
    3. devops application: Argo CD reported ComparisonError: ... k8s/devops/configmap.yaml: no such file or directory because k8s/devops/configmap.yaml was gitignored in PR feat(k8s): argo cd keeps cluster at declared state and release workflow alignment (#755) #1256 and missing from the git repository.

    Closes #1279.

    38 file(s) changed.

    How it was verified

    Check runs at c4559f6:

    • Prune PR DevContainer Images: pass
    • CodeQL: pass
    • Static Analysis: pass
    • Analyze (actions): pass
    • Analyze (python): pass
    • Tests & Coverage: pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1279-resolve-argocd-out-of-sync.md:

    • Ingress application syncs cleanly without schema validation errors on loki-ingress.
    • Base and monitoring applications no longer suffer ownership conflicts over Grafana dashboards or Pyroscope service.
    • Devops application manifests build successfully with kustomize in Argo CD.
    • kubectl kustomize k8s/overlays/homelab/devops and k8s/overlays/homelab/ingress generate valid manifests with exit code 0.
    • devops k8s argocd-source renders and generates gitignored .argocd-source.yaml files without dirtying git.
    • All unit and integration tests pass.
    • uv run devops ci completes with 100% passing status.
  8. added a commit that references this issue on Oct 7, 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

    priority/p1-highscope/k8stype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions